0.2.0 • Published 3 years ago

spinach-components v0.2.0

Weekly downloads
20
License
MIT
Repository
github
Last release
3 years ago

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 ←!?!?!?!?
0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.1

4 years ago