Documentation
VaneUI is a React component library for Tailwind CSS v4. Install it, learn the boolean props API, and browse 40+ components with live examples and props tables.
Getting Started
An overview of the library and instructions on how to install and configure it in your project.
Installation
Install @vaneui/ui with npm, yarn or pnpm, add its CSS through Tailwind CSS v4 or the prebuilt bundle, and wrap your React app in ThemeProvider.
Core Concepts
How VaneUI's boolean props API works in React: one prop per category, how props become Tailwind CSS classes and CSS variables, and where custom classes fit.
Usage Basics
Core VaneUI patterns in React: boolean size and appearance props, layout components, responsive visibility, typography, icons, images and overlays.
Next.js
Set up VaneUI in a Next.js App Router project: add the Tailwind CSS v4 imports, render ThemeProvider in the root layout, and add dark mode without a flash.
Vite
Set up VaneUI in a Vite React project: add the Tailwind CSS v4 plugin and the CSS imports, wrap the app in ThemeProvider, add dark mode without a flash, and link with React Router.
AI Assistants
Connect Claude Code, Cursor or VS Code to the VaneUI MCP server, or point any AI assistant at llms.txt and Markdown docs, so it writes correct React props.
Markdown Rendering
Render Markdown as VaneUI components with @vaneui/md: use Md in server and client components, place components with vaneui fences, restyle each element, and handle untrusted content.
Basic Components
A collection of fundamental and interactive components for building user interfaces.
Button
Button triggers an action or event when clicked. It can contain text, an icon, or both, and is a primary way for users to interact with the app.
IconButton
A square icon-only button with customizable appearance, size, and shape. Supports loading state and renders as anchor when href is provided.
NavLink
A navigation link for sidebars, nav menus and tab bars. Supports active state, icons, start and bottom indicator lines, and renders as anchor or button.
Badge
Badge highlights information such as notifications or counts in a non-intrusive way. Often paired with other elements like icons or navigation links.
Chip
Compact token for tags, attributes, or other discrete entities inline with text. Defaults to secondary appearance, outline variant, and rounded shape.
Code
Renders inline code snippets in a themed monospace surface. Use for commands, file paths, or technical terms in prose; renders as an anchor when given href.
Kbd
Displays keyboard keys and shortcuts with monospace font, border, and a raised 3D effect. Ideal for documenting keyboard shortcuts.
Mark
Highlights text with a background color for emphasis. Defaults to warning (yellow) appearance for a natural highlighter effect.
Icon
A lightweight SVG wrapper that provides consistent sizing, color inheritance, and themed appearances for icons.
Alert
Alert is a live region for messages that follow a user action. It announces itself when it appears, assertively by default or politely on request.
Spinner
Spinner indicates that something is in progress. The ring is sized in em, so it scales with the size prop and lines up with text.
Progress
Progress is a role="progressbar" bar for a task such as an upload or a setup step: a fill that grows with value, or a sliding fill when the length is unknown.
Avatar
Avatar is a picture of a person or a team: an image, the initials of the name when there is none, or a person icon. AvatarGroup overlaps several in one row.
Breadcrumb
Breadcrumb shows where a page sits in the site: a labelled nav with an ordered list of links that ends at the current page, marked with aria-current.
Skeleton
The skeleton prop shows any component as a loading placeholder in its own layout, and on a container reaches everything inside. Skeleton is a plain box for custom areas.
Form Components
Controls for capturing user input, and the label that ties them to their text.
Forms
Build a React form with VaneUI: Field and native validation, controlled and uncontrolled inputs, error messages, control values, submit, reset and button types.
Input
Input lets users enter text, numbers, and other data. A form element with support for various types, validation states, and styling options.
Checkbox
Allows users to select one or more options from a set. Checkboxes are ideal for binary choices and multiple selections within forms.
Label
Label associates text with a form control. Wrap an Input or Checkbox to make the label clickable, or use htmlFor when the control sits outside.
Field
Field wires a control to its label, help text and error message. It owns the id, points the label at the control, and links both messages with aria-describedby.
Textarea
Textarea captures multi-line input. It shares the Input size ramp and appearance props, resizes vertically, and never collapses below three lines.
Select
Select presents a list of options using the native dropdown, so it stays keyboard and screen-reader correct and behaves as expected on mobile.
Radio
Radio selects exactly one option from a set. RadioGroup shares a name across its options and exposes them as a single labelled group.
SegmentedControl
SegmentedControl picks one option out of a few short ones shown side by side, such as a status filter or a view switch. Each segment is a native radio.
Switch
Switch toggles a setting that takes effect immediately. Use Checkbox instead when the value is submitted with a form.
Typography Components
A suite of components for rendering text and establishing a clear typographic hierarchy.
Text
The primary component for rendering all text content. It provides props to control typographic properties like size, weight, color, and alignment.
PageTitle
A specialized component for the primary heading of a page. It ensures consistent styling for top-level titles across your application.
SectionTitle
A component for rendering headings of major sections within a page. It helps to create a clear and accessible document structure.
Title
React Title component for Tailwind CSS v4: an h3 heading for cards, dialogs and subsections, one level below SectionTitle, with size, color and weight props.
Link
Renders an accessible and themeable anchor link for navigation. Use this to direct users to other pages or external websites.
List
A container for displaying a series of related items in an ordered or unordered fashion. Documents both List and its ListItem entries.
Blockquote
Displays quoted content with a left border accent. Inherits appearance from the parent by default, so it blends into themed containers.
Layout Components
A set of components designed to help structure and organize your page content.
Container
Manages the main content area by centering it and applying a max-width. It ensures a consistent and readable layout across different screen sizes.
Section
Groups related content and owns the outer padding and background of a page band. Renders as a plain wrapper by default; pass tag="section" for a landmark.
Row
A fundamental layout component that arranges its children in a horizontal line. It is built on the flexbox model and is used to create columns.
Col
React Col component for Tailwind CSS v4: a vertical flex column with a gap and no padding, for content inside a Row, Card or Section. See when to use Stack.
Stack
React Stack component for Tailwind CSS v4: a padded, wrapping column or row with even gaps, set by boolean props. See when to use Col, Row or Card instead.
Card
Card is a container that groups related content with consistent styling. It can contain text, images, and other components.
Grid
Responsive equal-width column layouts. Grid2 through Grid6 render two to six columns that reduce on smaller screens; they share one API and differ only in column count.
Divider
Renders a thin line to separate content and create a clear visual hierarchy. Dividers can be used to group related items in lists and layouts.
Img
Displays images with VaneUI styling support including sizes, shapes, borders, shadows, and object-fit options.
Table
Renders semantic table markup with Table, Thead, Tbody, Tfoot, Tr, Th, Td, and Caption. The size prop cascades from the table to every cell, and a cell or row can override it.
Overlay Components
Components for overlays, dialogs, and floating elements that appear above the page content.
Overlay
A fullscreen backdrop overlay for creating modal backgrounds, loading screens, and lightbox effects. Renders via portal with click-to-close and optional blur.
Modal
Modal is an accessible dialog with focus trapping, scroll lock, and keyboard navigation. Renders its portal backdrop with role="dialog" and aria-modal="true".
Popup
A floating element anchored to a trigger element using CSS Anchor Positioning. Supports 12 placement options, width matching, and click-outside dismissal.
Menu
A dropdown menu triggered by a button with full keyboard navigation. Contains MenuItem, Divider, and MenuLabel subcomponents.
Tooltip
A short ink label that describes its trigger on hover and keyboard focus. Comes in sizes xs to xl and takes Popup props directly.
Customization
Learn how to customize and theme VaneUI components to match your design requirements.
Theming Overview
How VaneUI theming works: ComponentTheme classes, class mappers, ThemeProvider props and data attributes that style every React component via Tailwind CSS.
Using ThemeProvider
Wrap a React app in VaneUI's ThemeProvider to set default props for every component, add Tailwind CSS classes per prop, override the theme, or nest themes.
Theme & ThemeOverride
Customize themes using ThemeProvider's theme and themeOverride properties (applied to providers, not components).
ThemeDefaults
Set app-wide default props with ThemeProvider themeDefaults, such as a filled VaneUI Button everywhere, and see how defaults merge with component props.
ExtraClasses
Attach your own Tailwind CSS classes to VaneUI components when a boolean prop is active, with ThemeProvider extraClasses: hover effects, animations, sizes.
CSS Variables
Change VaneUI colors and sizing with CSS custom properties: the three-tier variable system, color groups, and global or scoped overrides, no component edits.
Dark Mode
Enable dark mode with data-theme="dark" on html or a wrapper, keep light regions with data-theme="light", and change colors in both schemes with light-dark().
Customizing Styles
Override VaneUI React component styles with Tailwind CSS classes in className: which properties win, when a CSS variable or a prop fits better, and pitfalls.
Variant Inheritance
Which VaneUI React components paint their own colors and which inherit them from a parent, why explicit props win, and how inheritAppearance works.
Guides
Technical articles on dark mode tokens, OKLCH color scales, contrast checks, Markdown rendering and responsive page sections.
Dark Mode Tokens with light-dark() and Tailwind CSS v4
Build dark mode tokens with CSS light-dark() and Tailwind CSS v4: how color-scheme picks a value, where VaneUI declares pairs, and how to override them.
OKLCH Color Scales for UI Themes
Build an 11-step OKLCH color scale for a UI theme: lightness targets, chroma per step, sRGB gamut limits, hex conversion and mapping steps to VaneUI roles.
Checking Color Contrast in Light and Dark Mode
Check color contrast in light and dark mode against WCAG 2.2 AA: the luminance formula, testing light-dark() pairs, and choosing text for filled buttons.
Render Markdown as React Components
Render Markdown as React components with @vaneui/md: Server Components or the client entry, frontmatter, vaneui fences, rendererTheme and untrustedPreset.
Responsive Page Sections Without Breakpoint Classes
Build responsive page sections in React without breakpoint classes: mobileStack, tabletStack, hide and show props, responsive padding and a pricing example.
Reference
Shared prop reference, cross-component documentation, and release notes.
Common Props
Layout and utility props shared by most VaneUI React components, written as booleans: responsive hide, flex alignment, position, display, overflow and gap.
Tailwind CSS Classes to VaneUI Props
Look up the VaneUI boolean prop for a Tailwind CSS class: layout, flex alignment, spacing, typography, borders, shadows, colors and responsive variants.
Changelog
Release notes for every @vaneui/ui version: added props and components, changes and fixes in the VaneUI React and Tailwind CSS library, newest first.