UI SDK Modules
Review the complete public export surface of @downcity/ui
UI SDK Modules
This page lists the full public module surface of @downcity/ui.
Utilities and Types
cn
- Purpose: merge Tailwind classes and resolve conflicts safely
DowncityButtonVariant
- Values:
default,outline,secondary,ghost,destructive,link
DowncityButtonSize
- Values:
default,xs,sm,lg,icon,icon-xs,icon-sm,icon-lg
DowncityCardSize
- Values:
default,sm
DowncityDropdownMenuItemVariant
- Values:
default,destructive
DowncityToasterTheme
- Values:
light,dark,system
Style Modules
@downcity/ui/source.css
- Role: declare the Tailwind scanning source
@downcity/ui/styles.css
- Role: provide design tokens and the base layer
Actions and State Modules
Button
- Exports:
Button,buttonVariants
Badge
- Exports:
Badge,badgeVariants
Toggle
- Exports:
Toggle,toggleVariants
ToggleGroup
- Exports:
ToggleGroup,ToggleGroupItem
Form Modules
Input
- Exports:
Input
Textarea
- Exports:
Textarea - Exported type:
TextareaProps
Checkbox
- Exports:
Checkbox
Label
- Exports:
Label
Containers and Display Modules
Card
- Exports:
CardCardHeaderCardTitleCardDescriptionCardActionCardContentCardFooter
Separator
- Exports:
Separator
Skeleton
- Exports:
Skeleton
Tabs
- Exports:
TabsTabsListTabsTriggerTabsContenttabsListVariants
Workboard
- Exports:
Workboard - Exported types:
DowncityWorkboardPropsDowncityWorkboardBoardSnapshotDowncityWorkboardAgentItemDowncityWorkboardActivityItem
- Purpose: render a pixel-style game world across multiple agents with a fixed 25 x 16 tile canvas, full-ratio normal view, cover-scaled fullscreen view, a Smallville-style town atlas, open state buildings, tiled interior room maps, a portal rail, keyboard map control, sprite patrols, quest paths, in-room wall boards, blueprint tables, a codex log, and focused inspection
buildWorkboardGameMapConfig
- Exports:
buildWorkboardGameMapConfig - Exported types:
DowncityWorkboardGameMapConfigDowncityWorkboardGameZoneDowncityWorkboardGameActorDowncityWorkboardGameRouteDowncityWorkboardGamePointOfInterestDowncityWorkboardGameAreaLabelDowncityWorkboardGameAtlasPropsDowncityWorkboardGameRoomPropsDowncityWorkboardGameInspectorPropsDowncityWorkboardGameHudProps
- Purpose: map the public
workboardsnapshot into a full game-map configuration that custom hosts can reuse for zones, actors, routes, gates, stations, props, and area labels
Overlays and Feedback Modules
Dialog
- Exports:
DialogDialogTriggerDialogPortalDialogCloseDialogOverlayDialogContentDialogHeaderDialogFooterDialogTitleDialogDescription
Sheet
- Exports:
SheetSheetTriggerSheetCloseSheetPortalSheetOverlaySheetContentSheetHeaderSheetFooterSheetTitleSheetDescription
DropdownMenu
- Exports:
DropdownMenuDropdownMenuTriggerDropdownMenuPortalDropdownMenuContentDropdownMenuGroupDropdownMenuLabelDropdownMenuItemDropdownMenuCheckboxItemDropdownMenuRadioGroupDropdownMenuRadioItemDropdownMenuSeparatorDropdownMenuShortcutDropdownMenuSubDropdownMenuSubTriggerDropdownMenuSubContent
Popover
- Exports:
PopoverPopoverTriggerPopoverContent
Tooltip
- Exports:
TooltipTooltipTriggerTooltipContentTooltipProvider
Toaster
- Exports:
Toaster - Built on:
sonner