Skip to content

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.

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.

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.

Customization

Learn how to customize and theme VaneUI components to match your design requirements.