# Components

247 families — primitives through composed patterns — installed as
source you own, with named design variants as their own items.

## Install

```sh
npx @lumioui/cli add button
npx @lumioui/cli add pro/paywall-sheet   # pro items take the pro/ prefix
```

The CLI writes `components/ui/<name>/<name>.tsx` and installs the
component's declared dependencies — run `npx @lumioui/cli init` first for
Reanimated + NativeWind.

## Variants

Variants are separate items named `<family>-<variant>` —
`button-glass` writes `components/ui/button/variants/glass.tsx`.
`--design` resolves them from the family name:

```sh
npx @lumioui/cli add button-glass
npx @lumioui/cli add button --design glass   # same item
```

## Behavior

Typed `<Name>Props` interfaces, optional handlers, haptics via
`useHaptic()`, spring-token motion, ≥44pt targets, reduced-motion
honored. Styling is semantic only (`bg-card`, `text-foreground`) —
see Theming.

## Expo Go

`expoGoCompatible` on each item marks what runs in Expo Go vs needs
a dev build.

## Listing

```sh
npx @lumioui/cli list --type component
```

Catalog: https://lumioui.com/components — per-family detail pages at
/components/<name> with the live prop playground.
