0.9.0 • Published 4 months ago

tailed-ui v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Tailed-ui

Build License

Installation

Install the package with your favorite package manager:

npm install tailed-ui

yarn add tailed-ui

pnpm install tailed-ui

Usage

Stylesheet

First, you'll need to import the index.css CSS file distributed by the package. This should be done at the root of your project (in index.js or App.tsx of your React app) and will look like:

import 'tailed-ui/index.css';

If you use Tailwindcss you can also add the tailed-ui to the contents of the tailwind configuration:

import type { Config } from 'tailwindcss';

const config: Config = {
  content: [
    './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
    './src/components/**/*.{js,ts,jsx,tsx,mdx}',
    './src/app/**/*.{js,ts,jsx,tsx,mdx}',
    './node_modules/tailed-ui/dist/**/*.{js,ts,jsx,tsx,mdx}',
  ],
};

export default config;

Components

Usage of components (after the library installed as a dependency into another project) will look like:

import { Button } from "tailed-ui/Button";

const App = () => (
  <>
    <h1>Hello I'm consuming the component library</h1>
    <Button>Hello World!</Button>
  </>
);

export default App;

Storybook

To run a live-reload Storybook server on your local machine:

npm run storybook

To export your Storybook as static files:

npm run storybook:export

You can then serve the files under storybook-static using S3, GitHub pages, Express etc. I've hosted this library at: https://tailed-ui.vercel.app

0.9.0

4 months ago

0.8.0

4 months ago

0.7.0

5 months ago

0.3.3-canary.2

6 months ago

0.3.3-canary.1

6 months ago

0.3.3-canary.0

6 months ago

0.5.0-canary.0

6 months ago

0.1.0

6 months ago

0.3.0

6 months ago

0.2.0

6 months ago

0.3.3-canary.3

6 months ago

0.0.9

6 months ago

0.5.0

6 months ago

0.4.1

6 months ago

0.3.2

6 months ago

0.4.0

6 months ago

0.3.1

6 months ago

0.6.0

5 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago