Skip to content

Separator

Separator is part of the Layout and content group. Visual or semantic divider between related content regions.

Terminal window
npx bambiui add separator --framework react
Terminal window
npx bambiui add separator --framework solid
Terminal window
npx bambiui add separator --framework svelte
Terminal window
npx bambiui add separator --framework vue
import { Separator } from "@/components/ui/separator";
export function Example() {
return <Separator />;
}
import { Separator } from "~/components/ui/separator";
export function Example() {
return <Separator />;
}
<script lang="ts">
import { Separator } from "$lib/components/ui/separator";
</script>
<Separator />
<script setup lang="ts">
import { Separator } from "@/components/ui/separator";
</script>
<template>
<Separator />
</template>
Separator preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.

Use between toolbar groups, menu sections, and page blocks.

Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.

Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Separator. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.

Separator

Customize tokens after installing and previewing the component. Relevant tokens include:

  • --bambi-border