{"slug":"separator","name":"Separator","category":"Layout & Navigation","summary":"A hairline rule that separates content.","status":"stable","since":"0.1.0","import":"import { Separator } from '@elluzion/iv-ui';","usage":["`orientation=\"vertical\"` needs a parent with a defined height.","Add `label` for a centered caption on a horizontal rule.","`spacing` controls the margin around the line."],"props":[{"name":"orientation","type":"'horizontal' | 'vertical'","default":"'horizontal'","description":"Line direction.","required":false,"bindable":false},{"name":"label","type":"string","default":"''","description":"Optional text rendered in the middle of the line.","required":false,"bindable":false},{"name":"spacing","type":"'sm' | 'md' | 'lg'","default":"'md'","description":"Vertical margin around the line.","required":false,"bindable":false},{"name":"className","type":"string","default":"''","description":"Extra classes merged onto the root element.","required":false,"bindable":false}],"events":[],"snippets":[],"types":[],"manual":[],"tokens":["--iv_border","--iv_font-mono","--iv_foreground-dim","--iv_separator-size","--iv_spacing-2xl","--iv_spacing-lg","--iv_spacing-md","--iv_spacing-sm","--iv_text-sm","--iv_tracking-wide"],"cssHooks":["iv-horizontal","iv-label-text","iv-labeled","iv-line","iv-separator","iv-spacing-lg","iv-spacing-sm","iv-vertical"],"accessibility":{"notes":["The element exposes `role=\"separator\"` with the matching orientation.","The label is visual text; it is not part of the accessible name.","Decorative line segments are hidden from assistive technology."]},"related":[{"title":"Card","summary":"A bordered surface for grouped content and actions.","url":"/components/card","kind":"Component"},{"title":"Breadcrumb","summary":"Shows the path to the current page.","url":"/components/breadcrumb","kind":"Component"},{"title":"Accordion","summary":"A stack of collapsible sections; one or several can be open.","url":"/components/accordion","kind":"Component"},{"title":"Article","summary":"A readable page body with an optional title and standfirst.","url":"/components/article","kind":"Component"}],"examples":[{"id":"horizontal","title":"Horizontal","description":"The default rule between stacked blocks.","code":"<script lang=\"ts\">\n\timport { Separator } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"stack\">\n\t<p>Build finished in 42 seconds.</p>\n\t<Separator />\n\t<p>Deploy started from the release branch.</p>\n</div>\n\n<style>\n\t.stack {\n\t\twidth: 100%;\n\n\t\tp {\n\t\t\tmargin: 0;\n\t\t\tfont-family: var(--iv_font-ui);\n\t\t\tfont-size: var(--iv_text-body);\n\t\t\tcolor: var(--iv_foreground-dim);\n\t\t}\n\t}\n</style>"},{"id":"labeled","title":"Labeled","description":"A centered caption splits the line into two segments.","code":"<script lang=\"ts\">\n\timport { Separator } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"stack\">\n\t<p>Read access is inherited from the organization.</p>\n\t<Separator label=\"Write access\" />\n\t<p>Members listed below can deploy and roll back.</p>\n</div>\n\n<style>\n\t.stack {\n\t\twidth: 100%;\n\n\t\tp {\n\t\t\tmargin: 0;\n\t\t\tfont-family: var(--iv_font-ui);\n\t\t\tfont-size: var(--iv_text-body);\n\t\t\tcolor: var(--iv_foreground-dim);\n\t\t}\n\t}\n</style>"},{"id":"vertical","title":"Vertical","description":"A vertical rule between inline items; the row provides the height.","code":"<script lang=\"ts\">\n\timport { Separator } from '@elluzion/iv-ui';\n</script>\n\n<div class=\"row\">\n\t<div class=\"cell\"><span class=\"label\">Build</span><span class=\"value\">42s</span></div>\n\t<Separator orientation=\"vertical\" />\n\t<div class=\"cell\"><span class=\"label\">Tests</span><span class=\"value\">118</span></div>\n\t<Separator orientation=\"vertical\" />\n\t<div class=\"cell\"><span class=\"label\">Size</span><span class=\"value\">84 kB</span></div>\n</div>\n\n<style>\n\t.row {\n\t\tdisplay: flex;\n\t\talign-items: stretch;\n\t\tpadding: var(--iv_spacing-md) 0;\n\t\twidth: 100%;\n\t\tmax-width: 420px;\n\t}\n\n\t.cell {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--iv_spacing-2xs);\n\t\tflex: 1;\n\t}\n\n\t.label {\n\t\tfont-family: var(--iv_font-mono);\n\t\tfont-size: var(--iv_text-xs);\n\t\tcolor: var(--iv_foreground-dim);\n\t\ttext-transform: uppercase;\n\t\tletter-spacing: var(--iv_tracking-wide);\n\t}\n\n\t.value {\n\t\tfont-family: var(--iv_font-mono);\n\t\tfont-size: var(--iv_text-lg);\n\t\tcolor: var(--iv_foreground);\n\t}\n</style>"}],"markdown":"/components/separator.md","page":"/components/separator"}