Skip to content

Nebula — the component set ​

@c9up/nebula ports the shadcn/ui set onto Aurora, organised as atomic design: the same markup, the same classes, the same behaviour, written for a runtime with no build step.

A nebula is the matter stars are born from — this one is the matter interfaces are born from. Seventy-six components across four layers, plus the headless behaviour layer Radix would otherwise provide.

Two ways to use it ​

ts
// Import it — quickest to try
import { Button, Card, CardHeader } from '@c9up/nebula'

// Or take the source — what the library is really for
// $ ream nebula:add button card
import { Button } from '#pages/atoms/Button.js'

ream nebula:add copies the component's source into your project and hands it over. No version, no upgrade path, no wrapper to fight when a design needs one class changed. Owning the source covers what that costs and how ream nebula:diff keeps it honest.

Where to start ​

Atomic design ​

shadcn is a flat ui/ directory. nebula sorts the same components into layers, and the layer is a property of the component: nebula:add button knows Button is an atom.

resources/pages/
├── lib/          cn, cva, icons, ids, reactive props
├── primitives/   the headless layer — focus, dismissal, placement, presence
├── atoms/        one element, composing nothing from nebula
├── molecules/    assembles atoms, or owns state across several elements
├── organisms/    portals, traps focus, floats, or coordinates molecules
└── templates/    page skeletons

The rule is composition, not complexity. Slider is an atom though it is interactive, because it is one input. Card is a molecule though it is trivial, because it assembles parts.

Components ​

Atoms (22) ​

AccessibleIcon · AspectRatio · Avatar · Badge · Button · Checkbox · Image · Input · Kbd · Label · Marker · NativeSelect · Progress · ScrollArea · Separator · Skeleton · Slider · Spinner · Switch · Textarea · Toggle · VisuallyHidden

Molecules (24) ​

Accordion · Alert · Attachment · Breadcrumb · Bubble · ButtonGroup · Card · Collapsible · Empty · Field · InputGroup · InputOTP · Item · Message · Pagination · Picture · PieceMap · RadioGroup · Resizable · Table · Tabs · ToggleGroup · Toolbar · Typography

Organisms (28) ​

Agenda · AlertDialog · Calendar · Carousel · Chart · Combobox · Command · CommandDialog · ContextMenu · DataTable · DatePicker · DateRangePicker · Dialog · Drawer · DropdownMenu · Form · HoverCard · Menubar · MessageScroller · NavigationMenu · Popover · Questionnaire · Select · Sheet · Sidebar · Sonner · Toaster · Tooltip

Templates (3) ​

AppShell · AuthLayout · SettingsLayout