# Bits UI

> Headless, accessible Svelte 5 primitives, the base of shadcn-svelte.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/bits-ui

free

Headless, accessible Svelte 5 primitives, the base of shadcn-svelte.

by Hunter Johnston (huntabyte)[GitHub](https://github.com/huntabyte/bits-ui)[npm](https://npmjs.com/package/bits-ui)

[visit](https://bits-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://bits-ui.com](https://bits-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Ark UI](https://tastebase.ehsanulsiam.workers.dev/browse/ark-ui)

Headless, accessible components with one API across React, Vue, Svelte and Solid, built on Zag state machines.

no preview

### [shadcn-svelte](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-svelte)

The Svelte 5 port of shadcn/ui: copy-in Tailwind components on bits-ui.

no preview

### [Kobalte](https://tastebase.ehsanulsiam.workers.dev/browse/kobalte)

Unstyled, accessible SolidJS primitives, the base of most Solid component kits.

no preview

### [Astryx](https://tastebase.ehsanulsiam.workers.dev/browse/astryx)

Meta's open source React design system on StyleX: 170+ typed components, themes and an agent-readable CLI.

## For your agent

##### Install

`npm i bits-ui`

##### Use it for

- a custom Svelte design system: dialogs, menus, comboboxes, date pickers, command menu
- a Svelte command palette (its Command component replaces the abandoned cmdk-sv)

##### Skip it when

- you want styled components: use shadcn-svelte
- a component library shared with React or Vue teams: use ark-ui
- Svelte 4: v1+ requires Svelte 5

##### What's inside41 free

- Accordion
- Alert Dialog
- Aspect Ratio
- Avatar
- Button
- Calendar
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Date Field
- Date Picker
- Date Range Field
- Date Range Picker
- Dialog
- Dropdown Menu
- Label
- Link Preview
- Menubar
- Meter
- Navigation Menu
- Pagination
- Pin Input
- Popover
- Progress
- Radio Group
- Range Calendar
- Rating Group
- Scroll Area
- Select
- Separator
- Slider
- Switch
- Tabs
- Time Field
- Time Range Field
- Toggle
- Toggle Group
- Toolbar
- Tooltip

##### Facts

**Frameworks**
svelte

**Styling**
unstyled

**Weight**
small

**Accessibility**
strong

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Pairs with

[shadcn-svelte](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-svelte)

##### Alternatives

[Ark UI](https://tastebase.ehsanulsiam.workers.dev/browse/ark-ui)

```
<script lang="ts">
  import { Dialog } from "bits-ui"
</script>

<Dialog.Root>
  <Dialog.Trigger>Open</Dialog.Trigger>
  <Dialog.Portal>
    <Dialog.Overlay />
    <Dialog.Content>
      <Dialog.Title>Settings</Dialog.Title>
      <Dialog.Close>Done</Dialog.Close>
    </Dialog.Content>
  </Dialog.Portal>
</Dialog.Root>
```

https://bits-ui.com

Loading website

[Visit](https://bits-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
