devflow-ui-kit
v0.1.1
Published
A Tailwind-based React UI component library (card component sample)
Downloads
5
Maintainers
Readme
devflow-ui (starter)
A minimal starter for a Tailwind-based React UI component library.
This package contains a single Card component so you can test publishing to npm.
Quick start
- Install dev dependencies:
npm install- Build the package:
npm run build- (Optional) Create tarball for local testing:
npm pack
# then in your test project:
npm install ../path/to/devflow-ui-0.1.0.tgz- Publish (make sure you have an npm account and unique package name):
npm login
npm publish --access publicNotes / Important
- Tailwind CSS: These components use Tailwind utility classes. The consuming project should have Tailwind configured, because the library doesn't ship compiled CSS in this starter.
- To make components styling-independent, you can later extract a compiled CSS file and ship it inside
dist. - If you change the package, bump version before publish:
npm version patchthen publish.
Usage (after install)
import { Card } from "devflow-ui";
export default function Page() {
return <Card title="Hello" description="This is a Devflow UI card" />;
}