{"name":"separator","title":"Separator","description":"","kind":"component","category":"display","status":"beta","props":{"orientation":{"type":"enum","values":["horizontal","vertical"],"default":"horizontal","description":"horizontal: 1px high, as wide as its container. vertical: 1px wide, as tall as the row it sits in (align-self: stretch); outside a flex row give it a height."},"decorative":{"type":"boolean","default":false,"description":"Purely visual: role=\"none\", so assistive technology skips it (a label is then read as plain text). Otherwise role=\"separator\" with aria-orientation, named by its label when it has one."}},"playground":{"name":"Playground","props":{"orientation":"horizontal","decorative":false},"text":"or"},"exampleFiles":[{"file":"settings-sections","title":"Between settings sections"},{"file":"deploy-details","title":"In a deploy's details line"},{"file":"sign-in-options","title":"Between sign-in options"}],"worstCase":[{"name":"Long label","props":{},"text":"Or continue with a single sign-on provider that your organisation has configured for this workspace","width":280},{"name":"Unbreakable label","props":{},"text":"averyveryveryverylongunbrokenlabelwithoutanyspacesatall","width":200},{"name":"Narrow","props":{},"text":"or","width":64},{"name":"Right-to-left label","props":{},"text":"أو تابع باستخدام","width":280},{"name":"Emoji label","props":{},"text":"✨ new since yesterday ✨","width":280}],"anatomy":[{"part":"root","element":"div","description":"role=\"separator\" with aria-orientation, or role=\"none\" when decorative. Without a label the element is the rule (1px, color.line): full width when horizontal, stretched to its row when vertical. With a label it is a flex row (a column when vertical) whose ::before and ::after are the two rules."},{"part":"label","element":"span","optional":true,"description":"The text in the middle (the children): text.xs, ink-2, centred. It wraps, never truncates, and takes at most 70% of the line (of the height when vertical), so the two rules share the rest. Author text keeps its own direction."}],"slots":{"default":"Label in the middle (optional)."},"states":[],"tokens":["color.line","color.ink-2","text.xs"],"a11y":{"role":"separator","notes":["role=\"separator\" with aria-orientation (horizontal or vertical); role=\"none\" when decorative.","A separator's children are presentational, so a labelled one is named by its label (aria-labelledby) and the label is announced once, as the separator's name.","Not focusable: this is the static separator, not a splitter."]},"motion":["none"]}