Reference

Component API

31+ beautiful, cross-platform components built on the Stareezy UI token system. Every component accepts BoxProps for layout and spacing.

All components are exported from @stareezy-ui/components and work on both web and React Native with the same API. Every component extends BoxProps — pass token shorthand props directly to the root container.

BoxProps — universal style system

Every component accepts these token-typed shorthand props on its root container. Values can be raw numbers, strings, or Token<T> objects from @stareezy-ui/tokens.

bgcolorppxpyptpbmmxmymtmbroundedborderWidthborderColorwidthheightflexflexDirectionalignItemsjustifyContentgapopacitypositionzIndexoverflow

Components

ButtonLive

Cross-platform button with 12 variants, 5 sizes, loading and disabled states.

Input

Text input with focus ring, error state, icons, and prefix slots.

Card

Container card with variants and optional glow colors.

SwitchLive

Animated toggle switch with label and size variants.

Accordion

Collapsible content sections with smooth animation.

Modal

Overlay dialog with backdrop blur, smooth animation, and size variants.

Tabs

Tab navigation with animated indicator — underline, pills, and card variants.

CheckboxLive

Animated checkbox with indeterminate state and label support.

Slider

Range input with custom styling, marks, and value display.

Spinner

Animated loading indicator — ring, dots, and pulse variants.

Avatar

User avatar with image, initials fallback, and status indicator.

Divider

Horizontal or vertical separator with optional label.

Dropdown

Select with search, option groups, and multi-select.

Progress

Linear progress bar with label, percentage, gradient, and striped variants.

Toast

Animated notification toast with success, error, warning, and info variants.

Badge

Small status indicator with color variants and dot/icon modes.

Tooltip

Floating tooltip on hover with configurable placement.

Drawer

Slide-in panel from any edge with smooth animation and overlay.

Import example

import {
  Box, Text, Button, Input, Accordion,
  Avatar, Checkbox, CircularProgress, Clipboard,
  Divider, Dropdown, Modal, Progress, Resizer,
  Skeleton, Slider, Spinner, Switch, Tabs,
  Card, Badge, Tooltip, Drawer, Toast,
  NavBar, FileDropZone, ProgressPanel,
} from '@stareezy-ui/components'
import { colors, spacing, radius, t } from '@stareezy-ui/tokens'

// Use BoxProps on every component
<Button type="Primary" text="Click" p={8} rounded={8} />
<Input label="Email" placeholder="you@example.com" mb={16} />
<Card variant="border" title="Hello" bg={t.backgrounds.primary} />
Click any component card above to see its full props table, interactive preview, and code example. Open Storybook to explore all variants with live controls.
Open Storybook
Live controls · dark mode toggle · auto-generated prop tables