The headless components for Svelte
open sourceMITself-hostablefree
Bits UI is a headless component library for Svelte focused on developer experience, accessibility and full creative control: its components ship unstyled, with no CSS reset or design system assumptions, and you style them through class props and data-* attributes. It covers dialogs, dropdown and context menus, menubars, comboboxes, a command menu, selects, sliders, tabs, toolbars and tooltips, and an unusually full set of date and time inputs: calendars, range calendars, date fields, date pickers, date range pickers and time fields. It is written in TypeScript for Svelte 5, MIT-licensed and made by Hunter Johnston (Huntabyte).
Problems it solves
- I need accessible dropdowns, dialogs and comboboxes for a Svelte app but want to style them myself
- an accessible date range picker for SvelteKit that doesn't force a look on me
- a command palette component for Svelte with keyboard navigation
- headless calendar and time field components for a Svelte 5 booking form
- build our own Svelte design system on top of tested, accessible primitives
- style component states in Svelte with data attributes and Tailwind classes
Features
- unstyled components styled through class props and data-* attributes
- accordion, alert dialog, dialog, popover, tooltip, link preview and collapsible
- dropdown menu, context menu, menubar, navigation menu, toolbar and command
- combobox, select, slider, switch, checkbox, radio group, rating group, pin input and toggle group
- calendar, range calendar, date field, date picker, date range field and picker, time field and time range field
- full TypeScript coverage and an event override system
- transitions support and state management helpers
- llms.txt documentation
Alternatives
The same job
These do what Bits UI does.
- Melt UI A set of headless, accessible component builders for Svelte
- Ark UI Unstyled, accessible UI components for your design system. Works in React, Vue, Solid, and Svelte.
- Headless UI Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS
- UI SDK A library of behaviors for agents to build the next generation of user interfaces.
- React Aria Accessible React components and hooks with no styles
- Radix UI Core building blocks for your design system