Components
Accessible building blocks in HTML, CSS and vanilla JavaScript, on Bootstrap 5.3.
Every component is plain HTML, CSS and (when needed) a small vanilla JavaScript file, built on Bootstrap 5.3. Install one with the CLI, or copy its files from its page.
bash
npx bootcn add buttonActions
- ButtonA customizable button built on Bootstrap with variants, sizes, icons and a CSS loading state.
- Button groupJoins related buttons into one control, horizontally or vertically.
- ToggleA two-state button, such as Bold in a text editor, built on a native checkbox.
- Toggle groupA set of toggles: several independent ones, or one choice from a set, built on native inputs.
- ToolbarA row of related controls with one tab stop and arrow-key navigation, with toggles and grouped choices.
Forms
- CalendarA month grid for picking a date, with full keyboard navigation, localized names and optional limits; single date or a date range.
- CheckboxA checkbox with label, description, invalid and disabled states.
- Color pickerPreset swatches, a custom color from the system picker and a hex field, kept in sync with one form value.
- ComboboxA searchable select: type to filter a list, pick one option or several (shown as chips), fully keyboard accessible.
- Date and time fieldsNative date, time and date-time inputs styled to match, with the browser picker in the right theme.
- Date pickerA button that opens a calendar in a popover and shows the chosen date, with keyboard support and form value.
- Date range pickerA button that opens a range calendar and shows the chosen start and end dates.
- FieldGroups form controls with labels, descriptions and errors, in stacked, side-by-side and horizontal layouts.
- InputA text input with label, help text, invalid and disabled states, and an input-group icon example.
- Input groupAn input with icons, text or buttons inside the same border, such as a search box or a URL field.
- Input OTPA one-time code field shown as separate boxes, backed by one real input that autofills from SMS and accepts paste.
- LabelA text label for a form control, in the compact text-sm style.
- ListboxA list of options to pick one or several from, with keyboard navigation, typeahead and form values.
- Number fieldA number input with decrement and increment buttons that respect min, max and step.
- Radio groupA labeled group of radio options, as a list or as selectable cards.
- Search fieldA search input with an icon and a clear button that appears when there is text; Escape clears it too.
- SelectA native select with label, help text, option groups, invalid and disabled states.
- SliderA native range input with a filled track, a visible value and keyboard support.
- SwitchAn on/off toggle built on Bootstrap form switches, with sizes and descriptions.
- TextareaA multi-line text field with label, help text, invalid state and optional auto-sizing.
Navigation
- AccordionCollapsible sections built on Bootstrap Collapse, styled as a flush list.
- BreadcrumbShows where the current page sits in the site hierarchy, with links to each parent.
- CommandA fast, searchable list of actions: inline, or as a Ctrl/⌘ K command palette in a dialog.
- DropdownA menu of actions built on the Bootstrap Dropdown plugin, with labels, shortcuts and a destructive item.
- LinkText links in default, muted and plain styles, with a clear marker for links that open in a new tab.
- MenubarA horizontal bar of menus, like a desktop application, with full arrow-key navigation and checkable items.
- Navigation menuSite navigation with panels of links and descriptions that open from the top bar, built on Bootstrap Dropdown.
- PaginationLinks to the pages of a long list, with previous and next, the current page and a gap.
- SidebarAn app sidebar that collapses to icons on desktop (remembered, Ctrl/⌘ B) and becomes a drawer on phones.
- TabsSegmented tabs built on the Bootstrap Tab plugin, with arrow-key navigation.
Overlays
- Alert dialogA modal confirmation that interrupts the user for an important decision, with Cancel focused first.
- Context menuA menu of actions for an element, opened with a right-click, Shift+F10 or the Menu key.
- DialogAn accessible confirm dialog built on Bootstrap's modal, with a declarative confirm event.
- DrawerA panel that slides up from the bottom, with a handle, for quick tasks on phones.
- Hover cardA preview card that appears when the pointer rests on or keyboard focus reaches a link, built on Bootstrap Popover.
- PopoverRich click-triggered overlays built on Bootstrap Popover, closable with Escape.
- SheetA panel that slides in from the edge of the screen for secondary tasks, built on Bootstrap Offcanvas.
- TooltipShort hints on hover and focus, built on Bootstrap Tooltip, dismissible with Escape.
Feedback
- AlertA callout for important information, with an icon, title and description, in default and destructive styles.
- Empty stateFills an empty list or page with an icon, a short explanation and the next action to take.
- MeterA gauge for a value within a known range, colored good, average or poor on the native meter element.
- ProgressShows how far a task has got, on the native progress element, with an optional label and value.
- Progress circleA circular progress indicator with the percentage inside, or an indeterminate spinner, on a native progress element.
- SkeletonLoading placeholders built on Bootstrap placeholders, with a reduced-motion-aware pulse.
- SpinnerAn accessible loading indicator built on Bootstrap spinners, with sizes and a muted variant.
- ToastNotifications built on Bootstrap Toast, with declarative triggers and a safe create() API.
Data display
- AvatarA user image with an initials fallback, sizes and an overlapping group.
- CarouselA slideshow of cards with previous and next buttons, built on Bootstrap Carousel, without autoplay.
- ChartAccessible SVG charts (area, bar, line, pie, radar, radial) from a small JSON configuration, with tooltips, a legend and a data table.
- Data tableA table with sorting, filtering, pagination and row selection, enhancing server-rendered rows.
- ItemA row with media, a title, a description and actions, for settings lists, files or people.
- KbdShows keyboard keys and shortcuts in text.
- TableA responsive data table with a caption, header, row hover and a totals footer.
- Tag groupA list of tags (chips) that can be removed, or a set of selectable tags built on native checkboxes.
Layout
- Aspect ratioKeeps media at a fixed width-to-height ratio, cropping images to fill.
- CollapsibleA panel that shows a summary and expands to reveal more, built on Bootstrap Collapse.
- ResizablePanels with a draggable divider that also resizes from the keyboard, horizontally or vertically.
- Scroll areaA scrollable region with thin, theme-aware scrollbars that keyboard users can reach and scroll.
- Scroll shadowA scrollable area that shows soft shadows at the edges while there is more content, in pure CSS.
- SeparatorA horizontal or vertical divider, with an optional centered label.
- TypographyReadable styles for long-form text: headings, paragraphs, lists, quotes, inline code and tables.

