@billabex/ui-components
v0.1.1
Published
React components for the Billabex design system — RSC compatible with prebuilt CSS
Downloads
259
Readme
@billabex/ui-components
RSC-compatible React components for the Billabex design system. They ship with prebuilt CSS, so consuming apps do not need Panda CSS just to use the components.
Part of the Lingot monorepo. 📖 Browse the Storybook →
Install
pnpm add @billabex/ui-componentsSetup
Import the distributed stylesheet once in your app entrypoint, then use the components:
import '@billabex/ui-components/styles.css'import { Button } from '@billabex/ui-components'Optional Panda CSS Preset
If your app already uses Panda CSS and you want Billabex tokens/conditions in your own config, install the dedicated preset package:
pnpm add -D @billabex/ui-preset @pandacss/dev// panda.config.ts
import { defineConfig } from '@pandacss/dev'
import { billabexPreset } from '@billabex/ui-preset'
export default defineConfig({
presets: [billabexPreset],
// ...
})Components
All components are RSC-compatible by default — only components that require interactivity use "use client".
Actions
| Component | Description |
|-----------|-------------|
| Button | Primary action trigger (primary | secondary | ghost | destructive) |
| IconButton | Icon-only action button |
| Link | Anchor-style navigation |
| Toggle | On/off switch |
| FilterButton | Active/inactive filter chip |
Data Display
| Component | Description |
|-----------|-------------|
| Badge | Status labels and counters |
| Card | Content container with optional header/footer |
| Divider | Horizontal or vertical separator |
| EmptyState | Placeholder for empty lists/views |
| InfoRow | Label–value pair row |
| ListItem | Row in a list with title, meta, preview |
| Table | Data table container with header |
| TableRow | Individual row in a table |
| Tooltip | Hover info popup |
Data Entry
| Component | Description |
|-----------|-------------|
| Checkbox | Boolean toggle input |
| FormField | Label + input + helper/error wrapper |
| Input | Text input field |
| Select | Dropdown select input |
Feedback
| Component | Description |
|-----------|-------------|
| Banner | Contextual messages (info, warning, error, success) |
| Modal | Dialog overlay |
| Toast | Transient notification |
Navigation
| Component | Description |
|-----------|-------------|
| Breadcrumb | Navigation breadcrumb trail |
| NavItem | Sidebar navigation entry |
| PageHeader | Top-level page title bar with actions |
| SectionTitle | Collapsible section heading |
| Sidebar | App-level sidebar with header, content, footer |
| Stepper | Multi-step progress indicator |
| StepperItem | Individual step in a stepper |
| TabItem | Individual tab trigger |
Layout
| Component | Description |
|-----------|-------------|
| DropdownMenu | Menu container for dropdown items |
| DropdownItem | Individual item inside a dropdown menu |
| FilterRow | Container for filter buttons |
| PanelHeader | Panel title bar with filters and actions |
Quick start
import { Button } from '@billabex/ui-components'
<Button variant="primary" size="medium">
Get Started
</Button>What the optional preset includes
The billabexPreset provides:
- Colors: neutral, gold, terracotta scales + semantic aliases (bg, text, action, status, border)
- Spacing:
xsthrough5xl(4px–64px) - Radii:
sm,md,lg,xl,full - Shadows:
sm,md,lg - Typography: heading, body, label, caption font styles
- Breakpoints:
sm(350px) throughdesktopXl(1920px)
