diff --git a/packages/ui/README.md b/packages/ui/README.md new file mode 100644 index 00000000..2437fdaf --- /dev/null +++ b/packages/ui/README.md @@ -0,0 +1,239 @@ +# @bytelyst/ui + +Shared component library for the ByteLyst ecosystem. Built with Radix UI primitives, Lucide icons, and CSS custom properties from `@bytelyst/design-tokens`. + +## Install + +```bash +pnpm add @bytelyst/ui +``` + +Peer dependencies: `react`, `react-dom`. + +## Components (15) + +### Button + +5 variants (`primary`, `secondary`, `ghost`, `destructive`, `outline`), 3 sizes, loading state with spinner. + +```tsx +import { Button } from '@bytelyst/ui'; + + + + +``` + +### Input + +Text input with error/success states. Supports `aria-invalid` automatically when `error` is truthy. + +```tsx +import { Input } from '@bytelyst/ui'; + + + +``` + +### Textarea + +Auto-resize textarea with error states. + +```tsx +import { Textarea } from '@bytelyst/ui'; + +