veryfront/ui

Import

ts
import {
  cva,
  generateTokenCSS,
  getDocumentNonce,
  getFileTypeLabel,
  useAdapter,
  useColorModeOptional,
} from "veryfront/ui";

Examples

Compose primitives

tsx
import { Button, Card, CardContent, CardHeader } from "veryfront/ui";

export function Panel() {
  return (
    <Card>
      <CardHeader>Settings</CardHeader>
      <CardContent>
        <Button onClick={() => save()}>Save</Button>
      </CardContent>
    </Card>
  );
}

Light/dark mode

tsx
import { ColorModeProvider, ColorModeToggle } from "veryfront/ui";

export default function App({ children }: { children: React.ReactNode }) {
  return (
    <ColorModeProvider>
      <ColorModeToggle />
      {children}
    </ColorModeProvider>
  );
}

Exports

Components

NameDescriptionSource
AccordionRender a set of togglable sections.source
AccordionContentThe section body: retained in the DOM and hidden while its section is closed.source
AccordionItemA single togglable section. Its open/collapse MECHANICS come from the active adapter's disclosure slot (controlled by the Accordion's single/multiple coordination), so an engine swap drives every item's collapse while the Accordion keeps owning which sections may be open.source
AccordionTriggerThe clickable header that toggles its section (via the disclosure slot).source
Alertsource
AlertActionTrailing action slot for <Alert> (button or link).source
AlertContentMessage body for <Alert>.source
AlertDialogAlertDialog root - owns open state (shares the Dialog adapter slot).source
AlertDialogActionConfirming action - runs onClick, then closes unless it calls preventDefault().source
AlertDialogCancelDismissing action - runs onClick, then closes unless it calls preventDefault().source
AlertDialogContentAlert surface - non-dismissing overlay + centered role="alertdialog" panel, rendered only while open. Generates the title / description ids, wires them to aria-labelledby / aria-describedby, traps focus, restores it on close, and portals outside clipping ancestors while retaining the token scope.source
AlertDialogDescriptionRequired supporting copy - adopts the Content-generated aria-describedby id.source
AlertDialogFooterRight-aligned action row - Cancel first, then the Action.source
AlertDialogTitleRequired accessible name - adopts the Content-generated aria-labelledby id.source
AlertDialogTriggerTrigger - opens the alert dialog. asChild merges onto the child element.source
AlertIconLeading icon slot for <Alert> (size-4 recommended).source
AppShellCompound AppShell. Compose:source
AspectRatioConstrain content to a fixed aspect ratio.source
AutocompleteAutocomplete root - renders no node of its own (state + context only).source
AutocompleteContentThe floating role="listbox" of suggestions, shown while typing.source
AutocompleteInputThe free-text input that drives the suggestions.source
AutocompleteItemA single suggestion. Fills the input when chosen; hides when it doesn't match.source
AvatarRender a user / agent / entity avatar.source
BadgeRender a badge.source
BreadcrumbThe landmark <nav aria-label="Breadcrumb"> wrapping the trail.source
BreadcrumbEllipsisA collapsed-trail indicator: renders … with an sr-only "More" label.source
BreadcrumbItemA single item in the trail: wraps a link, the current page, or an ellipsis.source
BreadcrumbLinkA navigable ancestor link in the trail.source
BreadcrumbListThe ordered list of trail items.source
BreadcrumbPageThe current page: a non-interactive role="link" marked aria-current="page".source
BreadcrumbSeparatorA decorative divider between items; renders its children or a default /.source
ButtonRender an action button.source
CalendarA dependency-free single-month date grid.source
CardA flat card surface (Studio Card).source
CardContentCard body region - vertical stack.source
CardHeaderCard header row - a flex row (Studio composes these inline).source
CheckboxA checkbox with an overlaid check indicator.source
CheckboxFieldA checkbox paired with a clickable label and optional description.source
CheckboxGroupVertical group of checkboxes.source
CodeBlockRender escaped source or delegate to explicit syntax/diagram capabilities.source
CodeBlockRendererProviderProvide extension-owned syntax and diagram renderers to a React subtree.source
CollapsibleCollapsible root whose open-state mechanics come from the active adapter. Public parts register their realized IDs through context, so opaque wrappers and multiple triggers retain unique DOM IDs and synchronized ARIA references without inspecting or rewriting the consumer's React tree. Supply root triggerId and contentId values when the same relationships must be present in static SSR output, before refs can register rendered parts.source
CollapsibleContentCollapsible content retained in the DOM and hidden while closed.source
CollapsibleTriggerToggle through the active disclosure adapter. asChild composes onto one child.source
ColorModeProvidersource
ColorModeScriptInline script to prevent flash of wrong color mode on SSR. Render this in <head> before any content.source
ColorModeToggleSimple toggle button for color mode.source
ComboboxCombobox root - renders no node of its own (state + context only).source
ComboboxContentThe floating role="listbox" surface, shown while filtering.source
ComboboxInputThe role="combobox" text input that drives filtering.source
ComboboxItemA selectable, filterable option. Hides itself when it doesn't match the query.source
CommandCommand root - owns the filter query and item registry.source
CommandDialogA Command palette inside a modal Dialog overlay.source
CommandEmptyShown when the query matches no items.source
CommandGroupA labelled group of items; auto-hides when all its items are filtered out.source
CommandInputSearch input row - bound to the command's filter query.source
CommandItemA selectable, filterable result row nested within CommandList.source
CommandItemContentFlex column wrapper for an item's title + description.source
CommandItemDescriptionItem secondary text.source
CommandItemTitleItem primary text.source
CommandListThe root's single scrollable results list.source
CommandSeparatorDivider between groups.source
CommandShortcutTrailing shortcut / metadata text.source
ContextMenuContextMenu root - owns open state and the pointer position. Renders a zero-size, position: fixed virtual anchor (kept inside the token scope so the portalled surface resolves var(--…)), which Floating measures to place the surface at the last right-click.source
ContextMenuContentMenu surface - portalled to the pointer position while open. No border (Studio).source
ContextMenuGroupGroups related items with a tight inner gap (Studio: gap-px p-0.5).source
ContextMenuItemA selectable menu item. Icons render at size-3.5 (14px). Closes on select.source
ContextMenuLabelNon-interactive section label - full-strength foreground (Studio).source
ContextMenuSeparatorFull-width divider between groups (Studio: -mx-2.5 my-2).source
ContextMenuTriggerTrigger - the region a right-click opens the menu over. Captures onContextMenu, calls preventDefault() (suppressing the browser's native menu), and opens the surface at the pointer coordinates. asChild merges onto the child element, which must forward ref to its DOM node.source
DatePickerRoot: owns { value, open }, provides context, and renders the Popover.source
DatePickerContentThe Popover surface wrapping the Calendar; picking a day commits it and closes.source
DatePickerTriggerThe field-styled button that shows the formatted value (or placeholder) and opens the popover.source
DesignTokenStyleScoped design-token stylesheet. Idempotent - render it anywhere.source
DialogDialog root - owns open state.source
DialogActionRecommended action button (primary, default size).source
DialogBodyScrollable body area with a bottom edge-fade.source
DialogCancelAlternate button (secondary, default size) that closes the dialog.source
DialogCloseCloses the dialog. asChild merges onto the child element.source
DialogContentModal surface - overlay + centered panel, rendered while open.source
DialogDescriptionDialog description - body text, left-aligned. Registers its id with the adapter so the panel adopts aria-describedby.source
DialogFooterSticky footer row - action left, cancel right.source
DialogFormLayout-neutral <form> shell (display: contents) wrapping header/body/footer.source
DialogHeaderLeft-aligned title + description block.source
DialogTitleDialog title - Studio Heading level 2 (20px). Semibold so Inter reads at Studio's medium-on-Söhne weight (workbench heading convention). Registers its id with the adapter so the panel adopts aria-labelledby.source
DialogTriggerTrigger - opens the dialog. asChild merges onto the child element.source
DrawerDrawer root - owns open state (via the adapter's drawer engine).source
DrawerBodyScrollable body area.source
DrawerCloseCloses the drawer. asChild merges onto the child element.source
DrawerContentBottom sheet - overlay + sliding surface with a drag handle.source
DrawerFooterSticky footer, full-width stacked actions.source
DrawerHeaderHeader column wrapper.source
DrawerTitleDrawer title - 18px medium (Studio Heading-ish). Add sr-only to hide. Registers its id with the adapter so the sheet adopts aria-labelledby.source
DrawerTriggerTrigger - opens the drawer. asChild merges onto the child element.source
DropdownMenuDropdownMenu root - owns open state and the positioning anchor.source
DropdownMenuContentMenu surface - rendered below the trigger while open. No border (Studio).source
DropdownMenuGroupGroups related items with a tight inner gap (Studio: gap-px p-0.5).source
DropdownMenuItemA selectable menu item. Icons render at size-3.5 (14px).source
DropdownMenuItemMetaTrailing metadata text - keyboard shortcuts, counts, badges.source
DropdownMenuLabelNon-interactive section label - full-strength foreground (Studio).source
DropdownMenuSeparatorFull-width divider between groups (Studio: -mx-2.5 my-2).source
DropdownMenuTriggersource
FieldThe field wrapper: derives ids and provides them to its sub-parts.source
FieldControlWiring wrapper: renders no node of its own; clones its single child control with the shared id, aria-describedby (the description, plus the error id when invalid), and aria-invalid.source
FieldDescriptionHelper text describing the field: referenced by the control's aria-describedby.source
FieldErrorThe field's error message: a live role="alert"; renders nothing when empty.source
FieldLabelThe field's label: wired to the control with htmlFor.source
FileTypeSoft-fill badge - rounded square, tinted background, extension label.source
FileTypeThumbSolid-fill thumbnail - full-saturation square with white .ext text.source
HoverCardHoverCard root - owns open state and the hover/focus timers. Renders no node of its own; the positioning anchor is the trigger element, carried on context.source
HoverCardContentHoverCard surface - the portalled floating card, rendered while open. Non-modal (no role="dialog", no focus trap): it's a supplementary preview, so the trigger keeps focus. Keeps itself open while the pointer is over it and closes shortly after the pointer leaves. Base classes mirror Popover's surface.source
HoverCardTriggerTrigger - carries the positioning-anchor ref and the hover/focus intent. Opens the card on pointer enter (after openDelay) or immediately on focus; closes it on pointer leave (after closeDelay) or on blur. asChild merges the behaviour onto the child element, which must forward ref to its DOM node (a child that drops ref leaves the card unanchored - Floating warns).source
IconButtonRender an icon-only button with a hover tooltip.source
InputRender a text input.source
InputOTPRender a segmented one-time-code input.source
LabelRender a form label.source
ListVertical list container.source
ListItemA single list row.source
ListLabelSection heading - uppercase, faint. Use for date groups etc.source
LoadingButtonButton that pulses subtly while pending and blocks double-submits.source
MenubarMenubar root - the horizontal role="menubar" container that owns open + roving-focus state.source
MenubarContentThe dropdown surface for one menu - reuses the DropdownMenuContent machinery.source
MenubarItemA selectable item inside a menu - role="menuitem"; selecting it closes the menu.source
MenubarMenuOne menu in the bar - a DropdownMenu whose open state the bar controls.source
MenubarSeparatorA horizontal divider between groups of items inside a menu.source
MenubarTriggerTop-level menu button - role="menuitem" with aria-haspopup, part of the roving-focus group.source
MeterRender a semantic gauge with a fill sized to the clamped value.source
NavigationMenuNavigation root: a <nav> landmark that owns which item's panel is open.source
NavigationMenuContentThe dropdown panel for one item: absolutely positioned, rendered only while open.source
NavigationMenuItemOne item in the bar: an <li> that provides its value to its trigger/panel.source
NavigationMenuLinkA single navigable link: used inside a panel or as a plain top-level item.source
NavigationMenuListThe horizontal list container: a flex <ul> of items.source
NavigationMenuTriggerThe button that toggles its item's panel: aria-expanded + aria-controls, with a caret.source
NumberFieldRender a numeric input that clamps to [min, max] and steps by step.source
PaginationThe paging landmark: a centered role="navigation" region.source
PaginationContentThe list of page items: a horizontal <ul>.source
PaginationEllipsisA non-interactive gap marker between page ranges.source
PaginationItemA single page slot: an <li> wrapping a link or ellipsis.source
PaginationLinkA page link: highlighted when isActive, otherwise hover-highlighted.source
PaginationNextA "Next ›" link: a labelled PaginationLink variant.source
PaginationPreviousA "‹ Previous" link: a labelled PaginationLink variant.source
PillRender a selection-trigger pill.source
PopoverPopover root - owns open state and the positioning anchor.source
PopoverActionsRight-aligned button row, for use inside a footer.source
PopoverBodyBody content region (Studio: px-5 last:pb-5 flex flex-col gap-4).source
PopoverContentPopover surface - rendered below the trigger while open.source
PopoverFooterFooter region; pass bordered for a top divider (Studio).source
PopoverHeaderSmall section label inside a popover (Studio: Heading level 5).source
PopoverTitlePrimary heading slot at the top of a popover (Studio: Heading level 4).source
PopoverTriggerTrigger - toggles the popover; the positioning anchor. asChild merges onto the child element, which must forward ref to its DOM node. The generic overload lets an asChild trigger carry an element-specific ref (e.g. an <a>); aria-haspopup is supplied by the adapter's trigger.source
ProgressBarRender a progress track.source
RadioA single radio input.source
RadioFieldA radio paired with a clickable label and optional description.source
RadioGroupVertical group of radios.source
ScrollAreaA styled, native-overflow scroll container.source
ScrollFadeA scroll container with auto edge-fade affordances.source
SelectSelect root - owns the selected value, disclosure state, and option registry.source
SelectContentListbox surface - rendered below the trigger while open.source
SelectGroupGroups related options. Add one SelectLabel or an explicit accessible name.source
SelectItemA selectable option nested within the root's single SelectContent.source
SelectLabelNon-interactive label; labels its nearest SelectGroup when present.source
SelectSeparatorDivider between option groups.source
SelectTriggerTrigger - keeps focus while controlling and navigating the listbox.source
SelectValueDisplays custom children, the selected label, or a placeholder.source
SeparatorA horizontal (default) or vertical divider rule.source
ShimmerRender shimmering text.source
SkeletonRender an animated placeholder bar.source
SliderRender a range slider.source
SlotRender Slot - merge props onto its single child element.source
StatusRender a status dot + label.source
SwitchA toggle switch.source
SwitchFieldA switch with a label + optional description, label-left / switch-right.source
TabsTablist container - delegates selection to the adapter, owns the size + look.source
TabsItemIndividual tab - renders as a button, or an anchor when href is set. The adapter's tabs.Tab supplies the role="tab" / aria-selected / data-state mechanics and composes selection onto the caller's onClick (caller's runs first, then the tab activates); this skin renders the visual pill and forwards native props/ref.source
TagStatic metadata chip.source
TagButtonTag rendered as a button.source
TagGroupWrapping container for a row of tags.source
TagLinkTag rendered as an external link.source
TextareaRender a textarea.source
ToastA single toast surface. Renders as a live region and arms an auto-dismiss timer that calls onClose after duration. Compose ToastTitle, ToastDescription and ToastClose inside it.source
ToastCloseManual close button for <Toast> (renders an ✕ glyph when given no children).source
ToastDescriptionSecondary supporting line for <Toast>.source
ToasterRender the active adapter's viewport for <ToastProvider viewport="manual">.source
ToastProviderHolds the toast queue (via the active adapter: builtin by default) and mounts the viewport. Wrap the part of the app that needs notifications.source
ToastTitleHeading line for <Toast>.source
ToastViewportRender the active adapter's viewport for <ToastProvider viewport="manual">.source
ToggleRender a pressed toggle button.source
ToggleGroupRender a group of toggles with shared selection (via the adapter engine).source
ToggleGroupItemA single toggle within a ToggleGroup.source
ToolbarA container that groups controls behind one tab stop with roving focus. The roving MECHANICS come from the active adapter's toolbar slot (useAdapter().toolbar): builtin by default, swappable via UIAdapterProvider.source
ToolbarButtonA ghost icon button that participates in the toolbar's roving focus.source
ToolbarLinkAn anchor styled like a ToolbarButton that joins the roving focus.source
ToolbarSeparatorA thin rule dividing groups of items within a toolbar.source
TooltipTooltip root that owns trigger interaction, IDs, and dismissal state.source
TooltipContentTooltip content, portalled and collision-positioned against its trigger.source
TooltipProviderProvide a shared opening delay. The default is 700 ms and values are clamped to 0-5000 ms.source
TooltipTriggerTooltip trigger. The default span is keyboard-focusable; asChild merges behavior onto one child element and retains that element's focus contract.source
UIAdapterProviderProvide (a partial) UI-primitive adapter to the subtree.source

Functions

NameDescriptionSource
cvaBuild a class-name function from a base plus a variants config.source
generateTokenCSSGenerates the scoped CSS for the design tokens. Every rule matches BOTH the canonical [data-vf-ui] scope and the [data-vf-chat] compat alias, so tokens don't leak to the page and existing consumers keep working.source
getDocumentNonceReuse the response-scoped CSP nonce for framework-owned inline elements. During SSR it comes from the isolated render context; in the browser it is recovered from a framework-generated element during hydration and SPA updates.source
getFileTypeLabelHuman label for a file extension, falling back to the media type.source
useAdapterResolve the active UI-primitive adapter. Never returns null (defaults to builtin).source
useColorModeOptionalNon-throwing variant - returns null when there is no ColorModeProvider. Use for components that should render standalone (e.g. a CodeBlock dropped into markdown) and fall back to light mode.source
useDocumentNonceRead the nonce from the Suspense-safe server provider or the browser DOM.source
useToastReturns { toast, dismiss }. Call toast(options) to enqueue (returns the new id), toast.custom((id) => node) for a fully custom toast, and dismiss(id) to remove one early. Must be used within a ToastProvider.source
useTokenScopeReturns a ref to attach to any element inside the token scope, plus a getContainer() that resolves the nearest scope element (falling back to document.body). Third-party adapters use this to feed their portal container (e.g. Base UI's <Portal container={…}>).source

Types

NameDescriptionSource
AccordionContentPropsProps accepted by <AccordionContent>.source
AccordionItemPropsProps accepted by <AccordionItem>.source
AccordionPropssource
AccordionTriggerPropsProps accepted by <AccordionTrigger>.source
AlertDialogActionPropsProps accepted by <AlertDialogAction>.source
AlertDialogCancelPropsProps accepted by <AlertDialogCancel>.source
AlertDialogContentPropsProps accepted by <AlertDialogContent>.source
AlertDialogDescriptionPropsProps accepted by <AlertDialogDescription>.source
AlertDialogFooterPropsProps accepted by <AlertDialogFooter>.source
AlertDialogPropsProps accepted by <AlertDialog>.source
AlertDialogTitlePropsProps accepted by <AlertDialogTitle>.source
AlertDialogTriggerPropsProps accepted by <AlertDialogTrigger>.source
AlertPropsProps accepted by <Alert>.source
AppShellHeaderPropsProps accepted by AppShellHeader.source
AppShellOpenStatePer-side visibility map.source
AppShellPropsProps accepted by AppShell.source
AppShellSideWhich edge a sidebar docks to.source
AppShellSidebarPropsProps accepted by AppShellSidebar.source
AppShellTriggerPropsProps accepted by AppShellTrigger.source
AspectRatioPropsProps accepted by <AspectRatio>.source
AutocompleteContentPropsProps accepted by <AutocompleteContent>.source
AutocompleteInputPropsProps accepted by <AutocompleteInput>.source
AutocompleteItemPropsProps accepted by <AutocompleteItem>.source
AutocompletePropsProps accepted by <Autocomplete> (the root; owns the input text + open state).source
AvatarPropsProps accepted by <Avatar>.source
BadgePropsProps accepted by <Badge>.source
BreadcrumbEllipsisPropsProps accepted by <BreadcrumbEllipsis>.source
BreadcrumbItemPropsProps accepted by <BreadcrumbItem>.source
BreadcrumbLinkPropsProps accepted by <BreadcrumbLink>.source
BreadcrumbListPropsProps accepted by <BreadcrumbList>.source
BreadcrumbPagePropsProps accepted by <BreadcrumbPage>.source
BreadcrumbPropsProps accepted by <Breadcrumb>.source
BreadcrumbSeparatorPropsProps accepted by <BreadcrumbSeparator>.source
ButtonPropsProps accepted by <Button>.source
CalendarPropsProps accepted by <Calendar>.source
CardPropsProps accepted by <Card>.source
CheckboxFieldPropsProps accepted by <CheckboxField>.source
CheckboxPropsProps accepted by <Checkbox>.source
CodeBlockModeLight/dark presentation mode forwarded to extension-owned renderers.source
CodeBlockPropsProps accepted by <CodeBlock>.source
CodeBlockRendererProviderPropsProps accepted by CodeBlockRendererProvider.source
CodeBlockRenderersOptional rich rendering capabilities supplied outside core.source
CodeDiagramRendererPropsFramework-neutral input for an extension-owned diagram renderer.source
CodeSyntaxRendererPropsFramework-neutral input for an extension-owned syntax renderer.source
CollapsiblePropsProps accepted by <Collapsible>.source
ColorModeProviderPropssource
ComboboxContentPropsProps accepted by <ComboboxContent>.source
ComboboxInputPropsProps accepted by <ComboboxInput>.source
ComboboxItemPropsProps accepted by <ComboboxItem>.source
ComboboxPropsProps accepted by <Combobox> (the root; owns query/open/value state).source
CommandDialogPropsProps accepted by <CommandDialog>.source
CommandInputPropsProps accepted by <CommandInput>.source
CommandItemPropsProps accepted by <CommandItem>.source
ContextMenuContentPropsProps accepted by <ContextMenuContent>.source
ContextMenuItemPropsProps accepted by <ContextMenuItem>.source
ContextMenuPropsProps accepted by <ContextMenu>.source
ContextMenuSlottedItemPropsLiteral slotted item contract with element-specific refs and events.source
ContextMenuSlottedTriggerPropsLiteral slotted trigger contract with an element-specific ref and events.source
ContextMenuTriggerPropsProps accepted by <ContextMenuTrigger>.source
DatePickerContentPropsProps accepted by <DatePickerContent>.source
DatePickerPropsProps accepted by <DatePicker>.source
DatePickerTriggerPropsProps accepted by <DatePickerTrigger>.source
DialogActionPropsProps accepted by <DialogAction>.source
DialogContentPropsProps accepted by <DialogContent>.source
DialogPropsProps accepted by <Dialog>.source
DisclosurePartsRole-tagged slots an adapter provides for a single open/close disclosure (the Collapsible primitive; Accordion composes one disclosure per item). The archetype is the overlay disclosure minus the portal/positioning: one or more triggers toggle a region whose node remains mounted and is hidden while closed. Public Collapsible parts coordinate their realized IDs without inspecting the consumer's React tree, then pass synchronized aria-controls and aria-labelledby props through these slots. Adapters must preserve those explicit relationships while supplying their own defaults for direct slot use.source
DisclosurePropsNormalized disclosure state shared by every overlay primitive. Matches useDisclosure exactly; adapters drop any engine-specific extras (e.g. Base UI's 2nd eventDetails arg on onOpenChange).source
DrawerContentPropsProps accepted by <DrawerContent>.source
DrawerPropsProps accepted by <Drawer>.source
DropdownMenuContentPropsProps accepted by <DropdownMenuContent>.source
DropdownMenuItemPropsBackward-compatible props accepted by <DropdownMenuItem>.source
DropdownMenuPropsProps accepted by <DropdownMenu>.source
DropdownMenuSlottedItemPropsSlotted-element props accepted by <DropdownMenuItem>.source
DropdownMenuSlottedTriggerPropsLiteral slotted trigger contract with an element-specific ref.source
DropdownMenuTriggerPropsTrigger - toggles the menu; the positioning anchor. asChild merges onto the child element, which must forward ref to its DOM node.source
FieldControlPropsProps accepted by <FieldControl>.source
FieldDescriptionPropsProps accepted by <FieldDescription>.source
FieldErrorPropsProps accepted by <FieldError>.source
FieldLabelPropsProps accepted by <FieldLabel>.source
FieldPropsProps accepted by <Field>.source
FileTypePropsProps accepted by <FileType> / <FileTypeThumb>.source
HoverCardContentPropsProps accepted by <HoverCardContent>.source
HoverCardPropsProps accepted by <HoverCard>.source
HoverCardTriggerPropsProps accepted by <HoverCardTrigger>.source
IconButtonPropsProps accepted by <IconButton>.source
InputOTPPropsProps accepted by <InputOTP>.source
InputPropsProps accepted by <Input>.source
LabelPropsProps accepted by <Label>.source
ListItemPropsProps accepted by ListItem. Standalone clickable rows receive button semantics and keyboard activation by default. Rows with a trailing action should use onActivate so both controls have native, sibling semantics.source
ListLabelPropsProps accepted by ListLabel.source
ListPropsProps accepted by List.source
MenubarContentPropsProps accepted by <MenubarContent>.source
MenubarItemPropsProps accepted by <MenubarItem>.source
MenubarMenuPropsProps accepted by <MenubarMenu>.source
MenubarPropsProps accepted by <Menubar>.source
MenubarSeparatorPropsProps accepted by <MenubarSeparator>.source
MenubarTriggerPropsProps accepted by <MenubarTrigger>.source
MeterPropsProps accepted by <Meter>.source
NavigationMenuContentPropsProps accepted by <NavigationMenuContent>.source
NavigationMenuItemPropsProps accepted by <NavigationMenuItem>.source
NavigationMenuLinkPropsProps accepted by <NavigationMenuLink>.source
NavigationMenuListPropsProps accepted by <NavigationMenuList>.source
NavigationMenuPropsProps accepted by <NavigationMenu>.source
NavigationMenuTriggerPropsProps accepted by <NavigationMenuTrigger>.source
NumberFieldPropsProps accepted by <NumberField>.source
PaginationContentPropsProps accepted by <PaginationContent>.source
PaginationEllipsisPropsProps accepted by <PaginationEllipsis>.source
PaginationItemPropsProps accepted by <PaginationItem>.source
PaginationLinkPropsProps accepted by <PaginationLink>.source
PaginationNextPropsProps accepted by <PaginationNext>.source
PaginationPreviousPropsProps accepted by <PaginationPrevious>.source
PaginationPropsProps accepted by <Pagination>.source
PartialUIAdapterA partial adapter map: unspecified keys fall back to builtin, so a consumer can override one primitive and leave the rest zero-dependency. This is what UIAdapterProvider accepts.source
PillPropsProps accepted by <Pill>.source
PopoverContentPropsProps accepted by <PopoverContent>.source
PopoverPropsProps accepted by <Popover>.source
PopoverSlottedTriggerPropsLiteral slotted trigger contract with an element-specific ref - for asChild triggers whose child is not a <button> (e.g. an <a>), so the consumer's ref keeps its precise element type.source
PopoverTriggerPropsProps accepted by <PopoverTrigger>.source
ProgressBarPropsProps accepted by <ProgressBar>.source
RadioFieldPropsProps accepted by <RadioField>.source
RadioPropsProps accepted by <Radio>.source
ScrollAreaPropsProps accepted by <ScrollArea>.source
ScrollFadePropsProps accepted by <ScrollFade>.source
SelectItemPropsProps accepted by <SelectItem>.source
SelectPropsProps accepted by <Select>.source
SelectTriggerPropsProps accepted by <SelectTrigger>.source
SeparatorPropsProps accepted by <Separator>.source
ShimmerPropsProps accepted by <Shimmer>.source
SkeletonPropsProps accepted by <Skeleton>.source
SliderPropsProps accepted by <Slider>.source
SlotPropsProps accepted by <Slot>.source
StatusColorDot colour, keyed to the --status-* palette.source
StatusPropsProps accepted by <Status>.source
SwitchFieldPropsProps accepted by <SwitchField>.source
SwitchPropsProps accepted by <Switch>.source
TabsItemPropsProps accepted by <TabsItem>.source
TabsPropsProps accepted by <Tabs> (the tablist container).source
TagLinkPropsProps accepted by <TagLink>.source
TextareaPropsProps accepted by <Textarea>.source
ToastActionA toast button: a label plus what to do when it's pressed.source
ToastFnImperative enqueue function: call toast(options), or toast.custom(render).source
ToastOptionsOptions accepted by toast(...) when enqueuing a notification.source
ToastPartsToast is imperative (a queue + hook), not a floating surface, so its adapter slot is Provider + useToast rather than role-tagged render slots. The builtin holds a queue and mounts a viewport; a Sonner adapter would mount <Toaster/> and map useToast().toast onto Sonner's toast().source
ToastPropsProps accepted by <Toast>.source
ToastProviderPropsNormalized queue and viewport options every toast adapter provider accepts.source
ToastStateThe imperative Toast API a skin part reads from inside a ToastProvider.source
ToastVariantOne of the cva colour schemes a toast can take.source
ToastViewportPropsNormalized props for an adapter-owned manual toast viewport.source
ToggleGroupItemPropsProps accepted by <ToggleGroupItem>.source
ToggleGroupPartsRole-tagged slots an adapter provides for the ToggleGroup primitive: a set of pressable items with shared single / multiple selection. The Root owns the selection state machine; the Item self-wires through the adapter's internal context (reads its pressed state, toggles on click). The skin keeps only the visual classes; data-state="on"|"off" on each Item is the styling hook.source
ToggleGroupPropsProps accepted by <ToggleGroup>.source
TogglePropsProps accepted by <Toggle>.source
ToolbarButtonPropsProps accepted by <ToolbarButton>.source
ToolbarLinkPropsProps accepted by <ToolbarLink>.source
ToolbarPartsRole-tagged slots an adapter provides for the Toolbar primitive: a role="toolbar" container sharing one tab stop, with roving-tabindex arrow-key navigation over its items. The Root owns the roving mechanics; each Item registers as a roving stop (engines rove their own item components, so the skin routes its buttons/links through Item). Separators stay pure skin.source
ToolbarPropsProps accepted by <Toolbar>.source
ToolbarSeparatorPropsProps accepted by <ToolbarSeparator>.source
TooltipContentPropsProps accepted by <TooltipContent>.source
UIAdapterThe adapter surface. Each new primitive must also be added to the explicit composition in context.tsx, which prevents undefined overrides from erasing inherited or builtin slots.source
VariantPropsExtracts the variant props of a cva function, like upstream's helper.source

Constants

NameDescriptionSource
badgeVariantssource
buttonVariantssource
cxRe-export of the class joiner, matching upstream's cx.source
inputVariantssource
labelVariantssource
pillVariantssource
scrollAreaVariantssource
selectTriggerVariantssource
switchTrackVariantssource
textareaVariantssource
toolbarVariantssource
useAppShellsource
useColorModesource

Deep imports

These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.

veryfront/ui/adapter

UI primitive-adapter contract (RFC 0001: bring-your-own UI primitive adapters). A behavioural primitive is split into a Skin (Tailwind / cva / [var(--token)] classes, authored once) and Mechanics (focus, dismiss, positioning, ARIA, keyboard) supplied by a swappable adapter. The contract is role-tagged component slots + normalized controlled or uncontrolled disclosure props (open, defaultOpen, onOpenChange): deliberately NOT prop-getters (those only fit React Aria's hooks; Base UI / Ariakit invert composition via render). Every adapter: the zero-dependency builtin and any third-party engine (Base UI, Radix, React Aria): satisfies these exact shapes, so one set of skin classes works everywhere. Types only. No runtime, no engine imports: this file is safe to pull into veryfront/ui/adapter from a consumer-authored adapter.

ts
import type { ComboboxParts, ComboboxState, DialogParts } from "veryfront/ui/adapter";

Types

NameDescriptionSource
ComboboxPartsRole-tagged slots an adapter provides for the Combobox primitive.source
ComboboxStateCombobox state a skin part reads. RICH by design - a Combobox is a text role="combobox" input filtering a role="listbox", so the adapter owns the typed query, the substring matches filter, the option registry, and the activeId (aria-activedescendant) that keyboard navigation walks. Filtering lives in the ADAPTER, not the skin, because active-descendant nav must move over the filtered set - the two are one state machine. The skin's items register (id, value, text) and read matches / activeId to hide/highlight; the skin never owns the filter logic.source
DialogPartsRole-tagged slots an adapter provides for the Dialog primitive (Drawer is a skin over the same modal mechanics via its own instance). The builtin wraps createModalSurfaceParts (overlay + centered panel, Escape / overlay-click dismiss, focus containment + restoration); a Base UI / Radix engine maps these onto its own Dialog parts.source
DisclosurePartsRole-tagged slots an adapter provides for a single open/close disclosure (the Collapsible primitive; Accordion composes one disclosure per item). The archetype is the overlay disclosure minus the portal/positioning: one or more triggers toggle a region whose node remains mounted and is hidden while closed. Public Collapsible parts coordinate their realized IDs without inspecting the consumer's React tree, then pass synchronized aria-controls and aria-labelledby props through these slots. Adapters must preserve those explicit relationships while supplying their own defaults for direct slot use.source
DisclosurePropsNormalized disclosure state shared by every overlay primitive. Matches useDisclosure exactly; adapters drop any engine-specific extras (e.g. Base UI's 2nd eventDetails arg on onOpenChange).source
DrawerPartsRole-tagged slots an adapter provides for the Drawer primitive: the same modal mechanics as Dialog on a distinct instance, plus an edge direction. The builtin renders a static edge sheet (the skin positions it); a Vaul specialist adapter drives real drag-to-dismiss / snap points off the same slots.source
ModalStateNormalized modal state a Dialog/Drawer skin part reads from its adapter. Beyond open/close it carries the label-registration surface so DialogTitle / DialogDescription can register their ids and the adapter wires the panel's aria-labelledby / aria-describedby (the builtin does this; an engine adapter maps these onto its own labelling). Structurally a subset of the builtin createModalSurfaceParts context.source
MultipleToggleGroupRootPropsMultiple-selection adapter root.source
PartialUIAdapterA partial adapter map: unspecified keys fall back to builtin, so a consumer can override one primitive and leave the rest zero-dependency. This is what UIAdapterProvider accepts.source
PopoverPartsRole-tagged slots an adapter provides for the Popover primitive: an anchored floating surface with a toggle trigger. The builtin wraps createAnchoredSurfaceParts (collision-aware positioning, Escape / outside dismiss, focus return, token-scope portal); an engine maps these onto its own Popover parts.source
SingleToggleGroupRootPropsSingle-selection adapter root.source
TabsPartsRole-tagged slots an adapter provides for the Tabs primitive: a role="tablist" owning the selected value, and role="tab" items that select on click and publish aria-selected + data-state="active"|"inactive". The builtin is panel-less (the consumer renders content by value); the skin owns the size variant + visual look via asChild.source
ToastPartsToast is imperative (a queue + hook), not a floating surface, so its adapter slot is Provider + useToast rather than role-tagged render slots. The builtin holds a queue and mounts a viewport; a Sonner adapter would mount <Toaster/> and map useToast().toast onto Sonner's toast().source
ToastProviderPropsNormalized queue and viewport options every toast adapter provider accepts.source
ToastStateThe imperative Toast API a skin part reads from inside a ToastProvider.source
ToastViewportPropsNormalized props for an adapter-owned manual toast viewport.source
ToggleGroupPartsRole-tagged slots an adapter provides for the ToggleGroup primitive: a set of pressable items with shared single / multiple selection. The Root owns the selection state machine; the Item self-wires through the adapter's internal context (reads its pressed state, toggles on click). The skin keeps only the visual classes; data-state="on"|"off" on each Item is the styling hook.source
ToggleGroupRootPropsDiscriminated selection contract implemented by every ToggleGroup adapter.source
ToolbarPartsRole-tagged slots an adapter provides for the Toolbar primitive: a role="toolbar" container sharing one tab stop, with roving-tabindex arrow-key navigation over its items. The Root owns the roving mechanics; each Item registers as a roving stop (engines rove their own item components, so the skin routes its buttons/links through Item). Separators stay pure skin.source
UIAdapterThe adapter surface. Each new primitive must also be added to the explicit composition in context.tsx, which prevents undefined overrides from erasing inherited or builtin slots.source

veryfront/ui/icons

Ai - Icons

ts
import { AlertTriangleIcon, ArrowDownIcon, ArrowRightIcon } from "veryfront/ui/icons";

Components

NameDescriptionSource
AlertTriangleIconsource
ArrowDownIconsource
ArrowRightIconsource
ArrowUpIconsource
BrainIconsource
CheckCircleIconsource
CheckIconsource
ChevronDownIconsource
CircleIconsource
ClockIconsource
CodeBracketsIconsource
CopyIconsource
FileTextIconsource
InfoIconsource
MessageSquareIconsource
MoreHorizontalIconsource
PanelLeftIconsource
PanelRightIconsource
PaperclipIconsource
PencilIconsource
PlusIconsource
RefreshCwIconsource
SearchIconsource
SendIconsource
SparklesIconsource
StopIconsource
TargetIconsource
TrashIconsource
WrenchIconsource
XCircleIconsource
XIconsource

Types

NameDescriptionSource
IconPropssource