Separator
Visually separates related content sections or menu groups.
Imports
Use the same component slug for React, Vue, and style token lookup. Do not import components from package roots.
import { Separator } from "@line/abc-def-react/separator";<script setup lang="ts">
import { Separator } from "@line/abc-def-vue/separator";
</script>Shadcn references
Compare the corresponding shadcn React and Vue documentation for the same component slug.
Basic usage
SemanticComponent
import { Separator } from "@line/abc-def-react/separator";
export function Example() {
return (
<div className="grid gap-2">
<span>Semantic</span>
<Separator />
<span>Component</span>
</div>
);
}<script setup lang="ts">
import { Separator } from "@line/abc-def-vue/separator";
</script>
<template>
<div class="grid gap-2">
<span>Semantic</span>
<Separator />
<span>Component</span>
</div>
</template>Component tokens
| Component Token | Semantic Token | Default Primitive Token |
|---|---|---|
--separator-bg | --border | --color-zinc-200 |
Composition exports
SeparatorUsage notes
- Use sparingly.
- Do not use separators as a substitute for spacing hierarchy.
- Related component tokens use the `separator` token group in `@line/abc-def-styles/css`.