{"schemaVersion":1,"id":"bits-ui","name":"Bits UI","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/bits-ui/","officialUrl":"https://bits-ui.com/","isCatalog":false,"description":"Accessible Svelte components without a predefined visual style: menu, dialog, and form behavior with keyboard and focus management.","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"],"categoryIds":["frontend"],"subcategoryIds":["frontend.components"],"tags":["Svelte","TypeScript","components"],"aliases":["huntabyte/bits-ui"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Bits UI code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","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.","selectionGuide":{"purpose":"UI components and behavior","chooseWhen":["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"],"considerInstead":["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":["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":["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."],"faq":[{"question":"What can you use for free in Bits UI?","answer":"Bits UI code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with Bits UI?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for Bits UI?","answer":"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."},{"question":"How do you get started with Bits UI?","answer":"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."},{"question":"What does current Bits UI require?","answer":"Getting Started describes components for Svelte 5. The library supplies primitives and TypeScript types; styling is added through class or data-*."},{"question":"Does Bits UI include a ready-made theme?","answer":"Most components ship without styles except those required for functionality. The documentation separately describes state management, render delegation, and element composition."},{"question":"Why does a headless component not look like a finished design?","answer":"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."},{"question":"Does the library guarantee accessibility of the whole page?","answer":"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":[{"id":"angular-material","reason":"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."},{"id":"melt-ui","reason":"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."},{"id":"primeui","reason":"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":["https://bits-ui.com/","https://github.com/huntabyte/bits-ui","https://github.com/huntabyte/bits-ui/blob/main/README.md","https://github.com/huntabyte/bits-ui/blob/main/LICENSE","https://bits-ui.com/docs/introduction","https://bits-ui.com/docs/getting-started","https://raw.githubusercontent.com/huntabyte/bits-ui/HEAD/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"UI components and behavior with Bits UI.","inputs":["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":["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."],"checks":["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."]},"sources":["https://bits-ui.com/","https://github.com/huntabyte/bits-ui","https://github.com/huntabyte/bits-ui/blob/main/README.md","https://github.com/huntabyte/bits-ui/blob/main/LICENSE","https://bits-ui.com/docs/introduction","https://bits-ui.com/docs/getting-started","https://raw.githubusercontent.com/huntabyte/bits-ui/HEAD/LICENSE"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"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.","notes":null,"labeledSources":[{"url":"https://bits-ui.com/","label":"Official website"},{"url":"https://github.com/huntabyte/bits-ui","label":"Source code"},{"url":"https://github.com/huntabyte/bits-ui/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/huntabyte/bits-ui/blob/main/LICENSE","label":"License"},{"url":"https://bits-ui.com/docs/introduction","label":"Official source"},{"url":"https://bits-ui.com/docs/getting-started","label":"Official source"},{"url":"https://raw.githubusercontent.com/huntabyte/bits-ui/HEAD/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}