Sketchbook
On this page

Tag <sb-separator> · status stable · version 0.1.0

Example

Account settings
Manage your profile and preferences.
Notifications
<div style="max-width:20rem">
  <div style="font-weight:500">Account settings</div>
  <div style="color:var(--sb-color-muted-foreground)">Manage your profile and preferences.</div>
  <sb-separator style="margin:16px 0"></sb-separator>
  <div>Notifications</div>
</div>

Properties

Name Type Default Notes
orientation horizontal, vertical horizontal Direction of the line. Horizontal is full width and 1px high; vertical is 1px wide and as high as its container.
decorative boolean true Default true. True removes the separator from the accessibility tree (role none). Set decorative="false" (or the property to false) to expose role separator. Because an attribute cannot default to true in HTML, the value "false" turns it off.

Accessibility

  • Role: separator when decorative is false; none when decorative
  • Accessible name: None: a separator is not named.

View as Markdown