Krate Docs

Component Library

@krate/components is a shadcn/ui-style set of accessible UI components built on the Krate runtime.

import { Card, CardGrid, Button, Aside, Steps, Tabs, Tooltip } from '@krate/components';

Layout & content

ComponentDescription
CardCard container with title and children
CardGridResponsive grid of cards
LinkCardCard that renders as a link
LinkButtonButton that renders as a link
CodeInline/code block with highlighting
AsideCallout / aside box
FileTreeFile tree display
Steps / StepOrdered steps with numbered indicators
TabsTabbed panels

Form controls

ComponentDescription
CheckboxCheckbox input
RadioGroupGrouped radio inputs
SwitchToggle switch
SliderRange slider
SelectSelect dropdown
LabelForm label
FormForm container
OTPFieldOne-time-password input
PasswordToggleFieldPassword input with visibility toggle
Toggle / ToggleGroupToggle button(s)

Overlays & navigation

ComponentDescription
AccordionCollapsible sections
CollapsibleCollapsible container
DialogModal dialog
AlertDialogConfirmation dialog
PopoverFloating popover
HoverCardCard revealed on hover
DropdownMenuMenu triggered by a button
ContextMenuRight-click menu
MenuBarHorizontal menu bar
NavigationMenuNavigation menu
TooltipHover tooltip
ToastToast notifications

Feedback & display

ComponentDescription
ProgressProgress indicator
AvatarAvatar image/fallback
SeparatorHorizontal/vertical divider
AspectRatioFixed aspect-ratio box
ScrollAreaStyled scroll container
VisuallyHiddenAccessible hidden content
ToolbarToolbar of controls

All components follow Radix-style accessibility patterns and integrate with Krate's signal-based event system for interactivity.