Skip to content

Separator ​

Styled separator component built on the zw-separator primitive.

@zeus-web/separatorLayoutzweb add separatorGenerated

Playground ​

Source ​

Choose the framework entry that matches your application.

html
<script type="module">
  import '@zeus-web/separator/wc/auto'
</script>

<zw-separator orientation="horizontal"></zw-separator>
tsx
import { Separator } from '@zeus-web/separator/react'

export function SeparatorExample() {
  return <Separator orientation="horizontal" />
}
vue
<script setup lang="ts">
import { Separator } from '@zeus-web/separator/vue'
</script>

<template>
  <Separator orientation="horizontal" />
</template>

Add ​

bash
zweb add separator

Imports ​

Styled registry component:

tsx
import { Separator } from '@/components/ui/separator'

Primitive React wrapper:

tsx
import { Separator } from '@zeus-web/separator/react'

Web Component entry:

ts
import '@zeus-web/separator/wc/auto'

Props ​

PropTypeDefaultDescription
orientationSeparatorOrientation
Values: horizontal, vertical
horizontalVisual orientation.

Events ​

No public events documented.

Slots ​

No slots documented.

Styling ​

Uses Tailwind: yes

Theme tokens:

  • bg-border

Internal selectors:

  • [data-slot=separator-root]

Registry ​

Registry source: available.

Add command: zweb add separator

Type: component

Dependencies:

  • @zeus-web/separator

Registry dependencies:

  • cn
  • globals

Files:

  • templates/react/separator.tsx → components/ui/separator.tsx
  • templates/vue/separator.ts → components/ui/separator.ts

AI usage rules ​

Do:

  • Use Separator to divide sections.

Do not:

  • Do not use Separator for decorative spacing.

Examples ​

React styled usage ​

tsx
import { Separator } from '@/components/ui/separator'

export function Example() {
  return <Separator />
}

Released under the MIT License.