Primitives
Low-level UI primitives for FoundryKit projects.
Primitives
@foundrykit/primitives is the base UI layer for FoundryKit. It packages Radix-based building blocks, shared styling conventions, and a re-export of cn from Utils.
Install
pnpm add @foundrykit/primitivesWhat It Exports
- Form and input primitives such as
Button,Input,Label,Textarea,Checkbox,RadioGroup,Switch, andSelect. - Layout and overlay primitives such as
Card,Dialog,Sheet,Popover,Tooltip,Tabs,DropdownMenu,ScrollArea, andSeparator. - Supporting display primitives including
Avatar,Badge,Breadcrumb,Skeleton, andToggle. - Styling helpers such as
buttonVariants,badgeVariants, andcn.
Requirements
- Peer dependencies:
reactandreact-dom. - Runtime styling assumes Tailwind-friendly class composition and works well with Tailwind.
- Several components depend on Radix packages that are bundled as regular package dependencies.
Start Here
- Read API for the public surface.
- Read Integration for how this package fits with Components, Blocks, Types, and Utils.