Getting Started
Learn how to get started using Bits in your app.
Installation
Install bits using your favorite package manager.
npm install bits-ui
npm install bits-ui
You can then import and start using them in your app.
<script lang="ts">
import { Accordion } from "bits-ui";
</script>
<Accordion.Root>
<Accordion.Item value="first">
<Accordion.Header>
<Accordion.Trigger>First</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the first accordion content</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="second">
<Accordion.Header>
<Accordion.Trigger>Second</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the second accordion content</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="third">
<Accordion.Header>
<Accordion.Trigger>Third</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the third accordion content</Accordion.Content>
</Accordion.Item>
</Accordion.Root>
<script lang="ts">
import { Accordion } from "bits-ui";
</script>
<Accordion.Root>
<Accordion.Item value="first">
<Accordion.Header>
<Accordion.Trigger>First</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the first accordion content</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="second">
<Accordion.Header>
<Accordion.Trigger>Second</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the second accordion content</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="third">
<Accordion.Header>
<Accordion.Trigger>Third</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content>This is the third accordion content</Accordion.Content>
</Accordion.Item>
</Accordion.Root>
🚧 UNDER CONSTRUCTION 🚧