gridland
API Reference

@gridland/ui

UI component library API reference

Individual components can be installed via the shadcn CLI. See Manual Installation → Install components for details.

bunx create-gridland add <component-name>

Or, if you'd rather call shadcn directly:

bunx shadcn@latest add @gridland/<component-name>

Components

ComponentDescriptionDocs
GridlandProviderRoot provider supplying theme and an implicit <FocusProvider selectable>
AsciiASCII art text with multiple font stylesAscii
ChainOfThoughtExpandable reasoning blocks with step statusChainOfThought
GradientColor gradients across text charactersGradient
LinkClickable hyperlink with configurable underlineLink
MessageChat message with role-based styling and streamingMessage
ModalOverlay dialog with border stylesModal
MultiSelectMulti-selection input with groups and validationMultiSelect
PromptInputChat input with slash commands and AI SDK integrationPromptInput
SelectInputSingle-selection dropdown with groupsSelectInput
SideNavSidebar navigation with keyboard-driven focusSideNav
SpinnerAnimated loading indicatorsSpinner
StatusBarHorizontal bar displaying keybinding hintsStatusBar
TableData table with compound sub-componentsTable
TabsTabbed content with keyboard navigationTabs
TerminalWindowmacOS-style terminal window chromeTerminalWindow
TextInputSingle-line text input with validationTextInput

Utility Functions

import { generateGradient, hexToRgb, rgbToHex } from "@/components/ui/gradient"
FunctionSignatureDescription
generateGradient(colors: string[], steps: number) => string[]Generate an array of interpolated hex colors
hexToRgb(hex: string) => { r, g, b }Convert hex to RGB
rgbToHex(rgb: { r, g, b }) => stringConvert RGB to hex