spinach-components
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Spinach Components

Current version deploy MIT License

Usage

npm i spinach-components
import * as React from 'react';
import * as SpinachComponents from 'spinach-components';

export const Component = () => (
  <SpinachComponnets.Text textSize="h1">text</SpinachComponnets.Text>
);

FAQ

What's npm script declaration-build?

There is an issue.
https://github.com/rollup/plugins/issues/287

Why do not use path alias?

type becomes any, if use path alias. I don't know this happen

// text.tsx
import { BaseProps } from '~shared/types';

export TextProps = BaseProps & {
  text: string
}
// text.stories.tsx
import { TextProps } from './text';
// type TextProps = any ←!?!?!?!?

Readme

Keywords

none

Package Sidebar

Install

npm i spinach-components

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

9.95 kB

Total Files

6

Last publish

Collaborators

  • tyankatsu0105