# Nook > Nook is a free, open source (MIT) React component library. Components are copied into your project with a CLI, styled with Tailwind CSS v4 and themed with CSS variables. Phase 1 supports React and Next.js. Install components with the CLI instead of writing them from memory. Use semantic tokens such as `bg-primary` and `text-muted-foreground`; never hard-code colors. ## Get started - [Introduction](http://localhost:3000/docs) - [Installation](http://localhost:3000/docs/installation) - [Theming](http://localhost:3000/docs/theming) - [CLI](http://localhost:3000/docs/cli) - [Registry](http://localhost:3000/docs/registry) ## Guides - [Accessibility](http://localhost:3000/docs/accessibility) - [Blocks](http://localhost:3000/docs/blocks) - [Customizing components](http://localhost:3000/docs/customization) - [Docs for AI](http://localhost:3000/docs/ai) - [MCP server and skill](http://localhost:3000/docs/mcp) ## Components - [Button](http://localhost:3000/docs/components/button): Triggers an action. Comes with variants, sizes and a loading state, and exports its styles for links. - [Input](http://localhost:3000/docs/components/input): A single line text field with invalid, disabled and focus states, plus a group for icons and add-ons. - [Textarea](http://localhost:3000/docs/components/textarea): A multi-line text field. - [Label](http://localhost:3000/docs/components/label): The visible name of a form control. It is tied to the control, so clicking the text focuses or toggles it. It is the text, not the box: pair it with an Input, Checkbox, Switch or Radio. - [Checkbox](http://localhost:3000/docs/components/checkbox): The box itself: a control with checked, unchecked and indeterminate states. It has no text of its own, so give it a Label. - [Radio Group](http://localhost:3000/docs/components/radio-group): Pick exactly one option from a small set, with arrow key navigation. - [Switch](http://localhost:3000/docs/components/switch): An on or off toggle that takes effect immediately. - [Select](http://localhost:3000/docs/components/select): Choose one value from a list in a popup, with typeahead and scroll arrows. - [Badge](http://localhost:3000/docs/components/badge): A small label for status, counts or categories. - [Card](http://localhost:3000/docs/components/card): A surface that groups related content, built from header, content and footer parts. - [Alert](http://localhost:3000/docs/components/alert): A callout for information the user should notice, with an optional icon. - [Avatar](http://localhost:3000/docs/components/avatar): A user image with a text fallback while loading or when it fails. - [Tabs](http://localhost:3000/docs/components/tabs): Switch between related panels with an animated active indicator. - [Dialog](http://localhost:3000/docs/components/dialog): A modal window that traps focus and returns it to the trigger when closed. - [Dropdown Menu](http://localhost:3000/docs/components/dropdown-menu): A menu of actions opened from a button, with checkbox and radio items. - [Popover](http://localhost:3000/docs/components/popover): A floating panel anchored to a trigger for extra content or small forms. - [Tooltip](http://localhost:3000/docs/components/tooltip): A short label shown on hover or keyboard focus. - [Toast](http://localhost:3000/docs/components/toast): Brief messages shown from anywhere with a function call. Mount the Toaster once. - [Skeleton](http://localhost:3000/docs/components/skeleton): A pulsing placeholder that holds space while content loads. - [Table](http://localhost:3000/docs/components/table): A semantic data table that scrolls sideways on small screens. - [Progress](http://localhost:3000/docs/components/progress): Shows how far a task has come, as a bar, a row of square dots or a ring. - [Input OTP](http://localhost:3000/docs/components/input-otp): A one-time code field with one box per character. Typing moves on and paste fills every box. - [Steps](http://localhost:3000/docs/components/steps): A sequence of steps with the finished, current and upcoming ones marked. - [Slider](http://localhost:3000/docs/components/slider): Pick a number by dragging, or a range when the value is an array. - [Toggle Group](http://localhost:3000/docs/components/toggle-group): Buttons that stay pressed: one at a time, or several with `multiple`. - [Number Field](http://localhost:3000/docs/components/number-field): A number with minus and plus buttons, limits and steps. - [Rating](http://localhost:3000/docs/components/rating): A star rating people can set, or a read-only display of a score. - [Chart parts](http://localhost:3000/docs/components/chart): The shared parts every Nook chart is built from: series colors, legend, tooltip, axis, grid and data table. - [Bar Chart](http://localhost:3000/docs/components/bar-chart): Compares amounts across categories, with solid bars or bars built from square dots. - [Line Chart](http://localhost:3000/docs/components/line-chart): Shows change over time as lines or filled areas, with a crosshair that reads every series at once. - [Sparkline](http://localhost:3000/docs/components/sparkline): A small trend line without axes, for use next to a number. - [Donut Chart](http://localhost:3000/docs/components/donut-chart): Shows how a whole splits into a few parts, with every part and its share listed beside the ring. - [Radar Chart](http://localhost:3000/docs/components/radar-chart): Compares a few things across the same set of measures. - [Heatmap](http://localhost:3000/docs/components/heatmap): A calendar of square cells, one per day, darker where there was more. - [Accordion](http://localhost:3000/docs/components/accordion): Stacked sections that open and close, one at a time or several. - [Separator](http://localhost:3000/docs/components/separator): A line between groups of content, horizontal or vertical. - [Sheet](http://localhost:3000/docs/components/sheet): A panel that slides in from an edge of the screen, for details and forms that should not leave the page. - [Alert Dialog](http://localhost:3000/docs/components/alert-dialog): A dialog that needs an answer before anything else, for actions that cannot be undone. - [Breadcrumb](http://localhost:3000/docs/components/breadcrumb): A trail of links that shows where a page sits. - [Pagination](http://localhost:3000/docs/components/pagination): Moves between pages of a list, with the first, last and nearby pages always in reach. - [Combobox](http://localhost:3000/docs/components/combobox): A select you can type in. The list narrows to what matches. - [Empty State](http://localhost:3000/docs/components/empty-state): Fills a place that has nothing in it yet and says what to do next. - [Calendar](http://localhost:3000/docs/components/calendar): A month of days to choose one day or a range from. - [Date Picker](http://localhost:3000/docs/components/date-picker): A field that opens a calendar, for one day or a range. - [Command](http://localhost:3000/docs/components/command): A searchable list of actions, on the page or in a dialog. - [Sidebar](http://localhost:3000/docs/components/sidebar): A navigation column that collapses to a rail of icons. - [Context Menu](http://localhost:3000/docs/components/context-menu): A menu that opens where you right click or long press. - [Hover Card](http://localhost:3000/docs/components/hover-card): A preview of what a link leads to, shown on hover or focus. - [Chat](http://localhost:3000/docs/components/chat): Message bubbles for a conversation, with a typing indicator. - [Form](http://localhost:3000/docs/components/form): A form whose fields explain their own errors. - [Rich Text Editor](http://localhost:3000/docs/components/rich-text-editor): A small editor for formatted text: headings, lists, quotes and links. - [Drawer](http://localhost:3000/docs/components/drawer): A panel that rises from the bottom and can be dragged away. - [Banner](http://localhost:3000/docs/components/banner): A strip across the top of a page for one message that concerns everyone. - [Notification](http://localhost:3000/docs/components/notification): A list of things that happened, with unread markers. - [Navbar](http://localhost:3000/docs/components/navbar): The bar at the top of a site or app. Links fold behind a menu button when it is narrow. - [File Upload](http://localhost:3000/docs/components/file-upload): A drop area that is also a button, with a list of the chosen files. - [Tags Input](http://localhost:3000/docs/components/tags-input): A field that collects several short values. - [Timeline](http://localhost:3000/docs/components/timeline): Events in the order they happened, joined by a line. - [Kbd](http://localhost:3000/docs/components/kbd): A key or key combination, as printed on a keyboard. - [Gantt](http://localhost:3000/docs/components/gantt): Tasks as bars along a shared calendar, with progress and a today line. - [Typography](http://localhost:3000/docs/components/typography): Headings, text sizes and a Prose wrapper that styles plain HTML. - [Kanban](http://localhost:3000/docs/components/kanban): Columns of cards that move between them by dragging or by keyboard. - [Counter](http://localhost:3000/docs/components/counter): A number that counts to its value. - [Shortcut](http://localhost:3000/docs/components/shortcut): Keyboard shortcuts: a hook that listens and a label that shows the keys for this device. - [Image](http://localhost:3000/docs/components/image): An image in a frame that holds its shape, with loading, failure and a large view. - [Audio Player](http://localhost:3000/docs/components/audio-player): A player for one track: play, seek, time and mute. - [Video Player](http://localhost:3000/docs/components/video-player): A video with its own controls: play, seek, time, mute and full screen. - [Device Frame](http://localhost:3000/docs/components/device-frame): A drawn browser window, phone, tablet, laptop or desktop around your content. - [Terminal](http://localhost:3000/docs/components/terminal): A terminal window for showing commands and what they print. - [Commit History](http://localhost:3000/docs/components/commit-history): A list of commits joined by a line, with hashes, authors and refs. - [Carousel](http://localhost:3000/docs/components/carousel): Slides in a row that scroll sideways and snap into place. - [File Tree](http://localhost:3000/docs/components/file-tree): Folders and files as a tree that opens and closes. - [Theme Toggle](http://localhost:3000/docs/components/theme-toggle): Switches between light and dark mode and remembers the choice. - [Search Input](http://localhost:3000/docs/components/search-input): A search field with a clear button, a loading state and a shortcut that jumps to it. - [Status Page](http://localhost:3000/docs/components/status-page): Whole-page messages: not found, server error, no access and maintenance. - [Filter Bar](http://localhost:3000/docs/components/filter-bar): A row of filters with chips for what is chosen. - [Infinite List](http://localhost:3000/docs/components/infinite-list): A list that fetches its next page as you reach the end. - [Mail](http://localhost:3000/docs/components/mail): An inbox list and an opened message. - [Chat Widget](http://localhost:3000/docs/components/chat-widget): A chat that opens from a button in the corner, for an assistant or for support. - [Voice Input](http://localhost:3000/docs/components/voice-input): A microphone button that records, with a timer and a level meter. - [Poll](http://localhost:3000/docs/components/poll): A question with one vote each, and up or down votes with a score. - [Flow](http://localhost:3000/docs/components/flow): A canvas of nodes joined by lines, for flows and site maps. - [Agent](http://localhost:3000/docs/components/agent): The steps an AI agent took: running, done, failed and waiting. - [Diff](http://localhost:3000/docs/components/diff): Shows what changed between two texts, line by line. - [Image effect](http://localhost:3000/docs/components/image-effect): Eleven ways to treat an image, from frosted square glass to pixels, dithering and characters. - [Glass](http://localhost:3000/docs/components/glass): A translucent frosted surface with an optional square tile grid. - [Loading](http://localhost:3000/docs/components/loading): Square-dot spinners, dots, a bar, character frames, overlays and full-area loading states. - [Wireframe](http://localhost:3000/docs/components/wireframe): Quiet, monochrome building blocks for planning pages and showing skeleton layouts. - [Zoom pane](http://localhost:3000/docs/components/zoom-pane): Explore a map, plan or illustration with wheel, pinch, drag, buttons and keyboard controls. - [Sketchpad](http://localhost:3000/docs/components/sketchpad): A pressure-aware freehand canvas with theme ink, an eraser, stroke history and PNG export. - [Live cursors](http://localhost:3000/docs/components/live-cursors): Named collaborator pointers over a shared area, with normalized positions and theme colors. - [Slides](http://localhost:3000/docs/components/slides): A responsive 16:9 presentation viewer with navigation, thumbnails, speaker notes and print pages. - [Money](http://localhost:3000/docs/components/money): Currency amounts, a private account balance and daily transaction groups. - [Invoice](http://localhost:3000/docs/components/invoice): A printable invoice with responsive line items and a complete payment breakdown. - [Pricing table](http://localhost:3000/docs/components/pricing-table): Monthly and yearly plans, as cards or a full feature comparison. - [Payment form](http://localhost:3000/docs/components/payment-form): Masked card inputs, a live card preview and payment method selection without processing payments. - [Product card](http://localhost:3000/docs/components/product-card): Product art, prices, options and cart actions, in a grid or compact list. - [Cart](http://localhost:3000/docs/components/cart): Editable cart rows, undoable removal, promo codes and an order summary. - [Candlestick chart](http://localhost:3000/docs/components/candlestick-chart): Price candles, volume, a market ticker and a depth order book drawn without chart dependencies. - [Map](http://localhost:3000/docs/components/map): A pan and zoom map with markers, routes and street tiles from any XYZ source, such as OpenStreetMap. Works offline with the drawn MapSchematic. - [Trip tracker](http://localhost:3000/docs/components/trip-tracker): A ride map, trip progress, driver details and a pre-trip ride chooser. - [Schedule](http://localhost:3000/docs/components/schedule): Events in a local-time day, week, month, or year. Overlapping meetings share the available width. - [Meeting scheduler](http://localhost:3000/docs/components/meeting-scheduler): Choose a meeting length, day and time, confirm your details, and save an event to your calendar. - [Sortable list](http://localhost:3000/docs/components/sortable-list): A reorderable list with touch-friendly handles, keyboard pickup, and spoken position updates. - [Todo list](http://localhost:3000/docs/components/todo-list): Tasks you can add, edit, filter and reorder, plus a progress checklist for setup guides. - [Org chart](http://localhost:3000/docs/components/org-chart): People and structures in a tree with automatic layout, right-angled connectors and collapsible branches. - [Color picker](http://localhost:3000/docs/components/color-picker): Choose saturation, brightness, hue and opacity, check contrast, or select a labelled palette swatch. - [Password input](http://localhost:3000/docs/components/password-input): A password field with an explicit reveal button, Caps Lock warning and optional guidance. - [Code block](http://localhost:3000/docs/components/code-block): Server-rendered syntax coloring, highlighted lines and file tabs with one copy control. - [Code block controls](http://localhost:3000/docs/components/code-block-controls): Client companion for CodeBlock: clipboard feedback, wrapping and tab state. - [Math](http://localhost:3000/docs/components/math): Native MathML from a small TeX-like parser, with spoken labels and numbered equations. - [Uptime bar](http://localhost:3000/docs/components/uptime-bar): Square daily availability cells and a service monitor with latency trends. - [Log viewer](http://localhost:3000/docs/components/log-viewer): Windowed application logs with search, level filters, pause, wrapping and clipboard export. - [API request](http://localhost:3000/docs/components/api-request): Inspect a request and response with collapsible details and a copy-as-curl action. - [Prompt input](http://localhost:3000/docs/components/prompt-input): A growing message field with files, model selection, slash commands and send/stop actions. - [Reasoning](http://localhost:3000/docs/components/reasoning): A collapsible thinking block that times active streaming and preserves the person’s choice. - [Sources](http://localhost:3000/docs/components/sources): Source links, a collapsible citation list and focusable inline citation previews. - [Streaming text](http://localhost:3000/docs/components/streaming-text): Progressive text with accessible full content and a compact row of message actions. - [Reactions](http://localhost:3000/docs/components/reactions): Emoji reactions and an authored, searchable picker with categories and recents. - [Marquee](http://localhost:3000/docs/components/marquee): A row that scrolls by itself, for logos, quotes or tags. - [Confetti](http://localhost:3000/docs/components/confetti): Small squares thrown from the middle for a moment worth marking. - [Background](http://localhost:3000/docs/components/background): A backdrop behind content: dots, grid, halftone, grain, gradient, mesh or aurora. - [Reveal](http://localhost:3000/docs/components/reveal): Content that arrives as it scrolls into view: from blur to sharp, sliding up or fading. - [Spotlight](http://localhost:3000/docs/components/spotlight): A card with a glow of the brand color that follows the pointer. - [Streak](http://localhost:3000/docs/components/streak): A run of days kept up, with each of the last seven days marked. - [Timer](http://localhost:3000/docs/components/timer): A countdown or a stopwatch with start, pause and reset. - [Wheel Picker](http://localhost:3000/docs/components/wheel-picker): A column you scroll to choose from, plus a time picker made of two wheels. - [Card Stack](http://localhost:3000/docs/components/card-stack): Cards in a pile you sort by dragging, or with buttons and arrow keys. - [Story](http://localhost:3000/docs/components/story): Slides one after another with a bar of segments on top. - [Motion](http://localhost:3000/docs/components/motion): Shared motion preference, animation timing and a visible playback control. - [Text effect](http://localhost:3000/docs/components/text-effect): Copy that types, scrambles, rotates through words, rises word by word or letter by letter, sharpens from a blur, slides in, gets a marker sweep, shimmers, waves or drops in. - [Number ticker](http://localhost:3000/docs/components/number-ticker): Formatted numbers whose individual digit columns roll when the value changes. - [Tilt card](http://localhost:3000/docs/components/tilt-card): A shallow perspective card that leans with the mouse and rests flat for keyboard input. - [Dock](http://localhost:3000/docs/components/dock): An app launcher that magnifies nearby buttons as the pointer passes. - [Glow border](http://localhost:3000/docs/components/glow-border): A subtle brand light travels around the edge of a content card. - [Coverflow](http://localhost:3000/docs/components/coverflow): A perspective shelf of covers with explicit, hand-controlled navigation. - [Copy field](http://localhost:3000/docs/components/copy-field): A read-only value with a clipboard action and live success or failure feedback. - [Description list](http://localhost:3000/docs/components/description-list): Label and value rows with optional copy actions for identifiers. - [Scroll area](http://localhost:3000/docs/components/scroll-area): A labelled native scroll container with keyboard focus and themed scrollbars. - [Collapsible](http://localhost:3000/docs/components/collapsible): A single disclosure with an animated panel and a keyboard-operable trigger. - [File preview](http://localhost:3000/docs/components/file-preview): An attachment summary with file type, size, upload progress and removal. - [Comparison table](http://localhost:3000/docs/components/comparison-table): Compare plans using feature rows, written inclusion states and a recommended column. - [Time picker](http://localhost:3000/docs/components/time-picker): Hour and minute lists with 12 or 24 hour display and a stable form value. - [Multi select](http://localhost:3000/docs/components/multi-select): Search many choices, select matching options and remove selected chips. - [Transfer list](http://localhost:3000/docs/components/transfer-list): Assign items between two named lists using checkboxes and move actions. - [Phone input](http://localhost:3000/docs/components/phone-input): A country calling code and a formatted national number with a combined form value. - [Address form](http://localhost:3000/docs/components/address-form): Shipping or billing fields with grouped layout and address autocomplete tokens. - [Language switcher](http://localhost:3000/docs/components/language-switcher): A native language selector using names in their own language. - [Stacked bar chart](http://localhost:3000/docs/components/stacked-bar-chart): Compare totals and their parts on a common baseline. - [Scatter chart](http://localhost:3000/docs/components/scatter-chart): Plot paired measurements to explore relationships, including negative values. - [Funnel chart](http://localhost:3000/docs/components/funnel-chart): Track counts through a sequence, with each stage’s share of the first. - [Treemap](http://localhost:3000/docs/components/treemap): A balanced area layout for comparing parts of a total. - [Gauge](http://localhost:3000/docs/components/gauge): A bounded measurement with named ranges and a square position marker. - [Bullet chart](http://localhost:3000/docs/components/bullet-chart): Compare actual performance with targets and capacity. - [Table of contents](http://localhost:3000/docs/components/table-of-contents): A section index that follows headings in view and supports ordinary anchor navigation. - [Back to top](http://localhost:3000/docs/components/back-to-top): Return to a named heading, with reduced-motion-aware scrolling and focus restoration. - [Activity log](http://localhost:3000/docs/components/activity-log): Actor and change entries grouped by day in an explicit timezone. - [NPS survey](http://localhost:3000/docs/components/nps-survey): A 0–10 recommendation score with a contextual follow-up and submission feedback. - [Shortcut dialog](http://localhost:3000/docs/components/shortcut-dialog): A searchable, grouped reference for application keyboard shortcuts. - [Resizable](http://localhost:3000/docs/components/resizable): Two panels separated by a pointer and keyboard resize handle. - [Stat card](http://localhost:3000/docs/components/stat-card): A labelled metric, change in words and optional sparkline with its data table. - [KPI grid](http://localhost:3000/docs/components/kpi-grid): Responsive stat cards that share one reporting-period switch. - [Mention input](http://localhost:3000/docs/components/mention-input): A plain-text textarea that suggests teammates after an at-sign at the caret. - [Data Table](http://localhost:3000/docs/components/data-table): A table with search, column filters, sorting, pagination, row selection and a column menu. Works on rows in memory or on one server page at a time. - [Editable](http://localhost:3000/docs/components/editable): Edit a value in place with a draft, explicit save, cancel and focus return. - [Split button](http://localhost:3000/docs/components/split-button): Put a frequent action beside a menu of related alternatives. - [Action bar](http://localhost:3000/docs/components/action-bar): Show the selection count with wrapping bulk actions and a clear control. - [Key/value editor](http://localhost:3000/docs/components/key-value-editor): Add, edit and remove named values while keeping row focus stable. - [JSON viewer](http://localhost:3000/docs/components/json-viewer): Inspect structured data with native nested disclosures and wrapping values. - [Duration input](http://localhost:3000/docs/components/duration-input): Edit hours, minutes and seconds as one canonical duration. - [Measurement input](http://localhost:3000/docs/components/measurement-input): Edit a quantity while switching display units without changing its canonical value. - [Range field](http://localhost:3000/docs/components/range-field): Choose exact lower and upper endpoints with linked numeric limits. - [Checkbox group](http://localhost:3000/docs/components/checkbox-group): Collect multiple choices under a visible legend with optional descriptions. - [Radio cards](http://localhost:3000/docs/components/radio-cards): Choose one descriptive option in a large labelled target. - [Tree select](http://localhost:3000/docs/components/tree-select): Select nested leaf values with mixed-state parent checkboxes. - [Signature field](http://localhost:3000/docs/components/signature-field): Capture a typed name with an optional handwritten drawing. - [Brand mark](http://localhost:3000/docs/components/brand-mark): The Nook mark: a lowercase n in square dots with one brand-colored dot inside. Sits beside the name of a product in the Nook family. - [Pie Chart](http://localhost:3000/docs/components/pie-chart): Shows how a whole splits into a few parts, as a filled disc with a list of the parts beside it. - [Radial Chart](http://localhost:3000/docs/components/radial-chart): Progress toward a goal for several measures at once, drawn as nested rings. ## Registry - [Registry index](http://localhost:3000/r/index.json): every installable item - [Item schema](http://localhost:3000/schema/registry-item.json): JSON Schema for registry items - [Prompts](http://localhost:3000/prompts/button.txt): a ready prompt per component and block at /prompts/.txt (CLI) and /prompts/.source.txt (source included) ## Optional - [Everything in one file](http://localhost:3000/llms-full.txt): concepts, CLI, and every component with props and accessibility notes - [Theme customizer](http://localhost:3000/themes): build a theme and export CSS