# Bits UI

[BASE product page](<https://base.akulich.dev/en/library/bits-ui/>) · [Resource](<https://bits-ui.com/>)

ID: bits\-ui · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Accessible Svelte components without a predefined visual style: menu, dialog, and form behavior with keyboard and focus management\.

## Type

UI library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/bits-ui/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/bits-ui/#resource-access>)

Bits UI code is available free of charge for local and commercial projects, subject to its license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/bits-ui/#resource-access>)

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Access and limitations](<https://base.akulich.dev/en/library/bits-ui/#resource-access>)

Bits UI code is available free of charge for local and commercial projects, subject to its license\. This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Use cases](<https://base.akulich.dev/en/library/bits-ui/#resource-tasks>)

- UI components and behavior
- An app using the required tech stack and its own design
- Add dialog and menu behavior in Svelte with custom styling
- Build Svelte components with keyboard and focus management

## Category IDs

- frontend

## Subcategory IDs

- frontend\.components

## Tags

- Svelte
- TypeScript
- components

## Also known as

- huntabyte/bits\-ui

## [Selection purpose](<https://base.akulich.dev/en/library/bits-ui/#resource-selection>)

UI components and behavior

## [Choose this when](<https://base.akulich.dev/en/library/bits-ui/#resource-selection>)

- UI components and behavior
- An app using the required tech stack and its own design
- Add dialog and menu behavior in Svelte with custom styling

## [Consider alternatives when](<https://base.akulich.dev/en/library/bits-ui/#resource-selection>)

- When choosing for this topic, compare Bits UI with Angular Material\. A candidate to compare under the topic: UI components\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- When choosing for this topic, compare Bits UI with Melt UI\. A candidate to compare under the topic: UI components\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## [Requirements](<https://base.akulich.dev/en/library/bits-ui/#resource-selection>)

- Svelte 5 for the current Getting Started route\.
- Prepare your own class/style or CSS using data attributes, accessible element names, and visible focus\. Component TypeScript types help align props but do not replace UX checks\.

## [Limitations](<https://base.akulich.dev/en/library/bits-ui/#resource-selection>)

- Costs and limits of free use: This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.
- Terms of use: MIT: permits free commercial use, modification, and distribution of the code, with the license text and copyright notice retained\. The code is provided without warranties; check accessibility of the finished application separately\.
- Most components require their own visual styling\.

## [Questions before use](<https://base.akulich.dev/en/library/bits-ui/#resource-faq>)

### What can you use for free in Bits UI?

Bits UI code is available free of charge for local and commercial projects, subject to its license\.

### What additional costs might arise with Bits UI?

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

### What terms of use matter for Bits UI?

MIT: permits free commercial use, modification, and distribution of the code, with the license text and copyright notice retained\. The code is provided without warranties; check accessibility of the finished application separately\.

### How do you get started with Bits UI?

Check the project's stack and version against the current Bits UI documentation; add the package or the required source component\. Getting Started shows installing bits\-ui and Accordion\.Root with Item, Header, Trigger, and Content; type="single" uses a string value, while type="multiple" uses an array\. Implement the selected workflow using the provided data, adapting styles and states to the project\. class and style are set on component parts; for global CSS, check data attributes against the particular component's API\. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

### What does current Bits UI require?

Getting Started describes components for Svelte 5\. The library supplies primitives and TypeScript types; styling is added through class or data\-\*\.

### Does Bits UI include a ready\-made theme?

Most components ship without styles except those required for functionality\. The documentation separately describes state management, render delegation, and element composition\.

### Why does a headless component not look like a finished design?

Most styles are not supplied except those required for component functionality\. Getting Started suggests class, style, TailwindCSS/UnoCSS, or CSS using data attributes\. One possible sequence is to style normal, selected, error, and focus states in your product's design system\.

### Does the library guarantee accessibility of the whole page?

Introduction describes keyboard support, focus management, and ARIA\. Custom labels, contrast, composition, and application behavior require verification\. One possible test is to navigate the component with a keyboard, open and close it, and check focus restoration and reading of its accessible name\.

## Related resources selected by editors

- angular\-material: A candidate to compare under the topic: UI components\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- melt\-ui: A candidate to compare under the topic: UI components\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- primeui: A candidate to compare under the topic: UI components\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## Sources for the selection guide

- [https://bits\-ui\.com/](<https://bits-ui.com/>)
- [https://github\.com/huntabyte/bits\-ui](<https://github.com/huntabyte/bits-ui>)
- [https://github\.com/huntabyte/bits\-ui/blob/main/README\.md](<https://github.com/huntabyte/bits-ui/blob/main/README.md>)
- [https://github\.com/huntabyte/bits\-ui/blob/main/LICENSE](<https://github.com/huntabyte/bits-ui/blob/main/LICENSE>)
- [https://bits\-ui\.com/docs/introduction](<https://bits-ui.com/docs/introduction>)
- [https://bits\-ui\.com/docs/getting\-started](<https://bits-ui.com/docs/getting-started>)
- [https://raw\.githubusercontent\.com/huntabyte/bits\-ui/HEAD/LICENSE](<https://raw.githubusercontent.com/huntabyte/bits-ui/HEAD/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/bits-ui/#resource-scenario>)

UI components and behavior with Bits UI\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A working Svelte; TypeScript project and a specific use case: UI components and behavior\.
- A design, interface states, or dataset; target screens and accessibility requirements\.

## Steps

1. Check the project's stack and version against the current Bits UI documentation; add the package or the required source component\. Getting Started shows installing bits\-ui and Accordion\.Root with Item, Header, Trigger, and Content; type="single" uses a string value, while type="multiple" uses an array\.
2. Implement the selected workflow using the provided data, adapting styles and states to the project\. class and style are set on component parts; for global CSS, check data attributes against the particular component's API\.
3. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

## Check your result

- The example works in the chosen tech stack, including target dimensions and input errors\.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met\.

## [License](<https://base.akulich.dev/en/library/bits-ui/#resource-license>)

MIT: permits free commercial use, modification, and distribution of the code, with the license text and copyright notice retained\. The code is provided without warranties; check accessibility of the finished application separately\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/bits-ui/#resource-sources>)

- [Official website](<https://bits-ui.com/>)
- [Source code](<https://github.com/huntabyte/bits-ui>)
- [Documentation and use](<https://github.com/huntabyte/bits-ui/blob/main/README.md>)
- [License](<https://github.com/huntabyte/bits-ui/blob/main/LICENSE>)
- [Official source](<https://bits-ui.com/docs/introduction>)
- [Official source](<https://bits-ui.com/docs/getting-started>)
- [Official source](<https://raw.githubusercontent.com/huntabyte/bits-ui/HEAD/LICENSE>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, published primary source code/documentation, and license terms were reviewed\. An example was not run in a local project\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
