Components
Shared components, from single controls to whole features.
Reach for it when
- Before building anything: check the tier below and
COMPONENTS.md. Fix shared components at the source. - A new component gets a story with its loading, empty and error states.
The short version
If you read nothing else on this page, read these.
Do. Compose from the library. The focus ring, sizes, press state and dark mode come with it.
+ New Site
Don't. Hand-roll a primitive because the shared one is almost right. Fix it at the source.
LiveError
Do. Show system state with
StatusBadge. It owns the dot, the label and the copy.LIVE⚠ failed
Don't. Draw a one-off pill. The next screen draws a slightly different one.
Library
Fronds carry the tokens, fiddles own one job, understories assemble a feature. Open a component for its guide and API, or click a path to copy the import.
Button
FrondBadge
FrondCountBadge
FrondInput, Textarea
FrondLabel; errors via aria-invalid and a Note.PasswordInput
FrondInput with a show and hide toggle once there's a value. Same rules as Input.Chip
Frondaria-pressed marks the selected one.Boolean and choice controls. Switch applies immediately; Checkbox waits for Save.
One of many. Searchable above ~8 options.
Kbd, KbdShortcut
Frondmod renders ⌘ or Ctrl by platform.Tooltip
Frondshortcut.Skeleton, Progress
FrondHttpMethodBadge
FrondIconTile
Frondsm beside a table cell, lg beside a page title.Avatar
FrondIcons
Frondlucide-react.StatusBadge
FiddleNote
FiddleSegmentedControl
FiddleCard
Fiddlesurface-card) with standard padding.MetricsCard
FiddleSparkline, Sparkbars
FiddleValues a user copies: commands, keys, URLs.
CodeBlock
FiddleFloating surfaces on
bg-overlay with one hairline and shadow-overlay.DataTable, Pagination
FiddleSteps
FiddleFileTree
FiddleAgentMark
FiddleNavbar and sidebar
UnderstoryCommandPalette
UnderstoryAgent panel
UnderstoryAnalytics layout
UnderstorySettings cards
UnderstorySide panels
UnderstoryDocs preview
UnderstoryOnboarding steps
UnderstoryKeep going
Patterns
How components come together into pages.
Surfaces
Introduce layering of components with ease.
Accessibility
Fern supports accessibility standards out of the box.