Component library for building applications that flourish.
Install
·
Usage
·
Components
npm install cattleya-uiImport the design system styles once in your app entry:
import 'cattleya-ui/styles.css'Components live under cattleya-ui and follow a copy-friendly source style — browse them in Storybook, then bring the ones you need into your project.
import { Button } from './components/button'
export function Example() {
return <Button variant="default">Button</Button>
}Wondering why components aren't imported directly from the package? See Why copy-paste instead of a direct import.
| Component | Description |
|---|---|
Accordion |
Expandable sections with open/close animation |
Avatar |
Image or fallback initials |
Badge |
Compact status label (default, outline, …) |
Button |
Action button (default, outline, success, destructive) |
Card |
Content surface with border and padding |
Checkbox |
Animated checked / indeterminate states |
Dialog |
Modal overlay with title, description, and footer |
DropdownMenu |
Animated menu with trigger and items |
Input |
Text field with animated placeholder |
Spinner |
Loading indicator |
Switch |
Toggle control |
Tooltip |
Contextual hint on hover/focus |
Colors (base / semantic / component), spacing, radius, and typography are documented in Storybook under Design System.
Components are written in TypeScript (.tsx). Types ship with the source — no separate @types package required.
Read the contributing guide.
© Licensed under the MIT LICENSE.
