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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.01
0.1.10
0.1.00
0.0.10

Package Sidebar

Install

npm i spinach-components

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

9.95 kB

Total Files

6

Last publish

Collaborators

  • tyankatsu0105