FoundryKit

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/primitives

What It Exports

  • Form and input primitives such as Button, Input, Label, Textarea, Checkbox, RadioGroup, Switch, and Select.
  • Layout and overlay primitives such as Card, Dialog, Sheet, Popover, Tooltip, Tabs, DropdownMenu, ScrollArea, and Separator.
  • Supporting display primitives including Avatar, Badge, Breadcrumb, Skeleton, and Toggle.
  • Styling helpers such as buttonVariants, badgeVariants, and cn.

Requirements

  • Peer dependencies: react and react-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.

On this page