<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-separator/ in the magma monorepo (usage/*.md and the
  component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
-->

# mds-separator

> `@maggioli-design-system/magma` 2.15.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.

The `<mds-separator>` web component is the visual divider of the Magma Design System: a thin, full-radius horizontal rule used to partition content into distinct groups. It is a purely presentational primitive - the styled equivalent of an `<hr>` - with no props, slots, events, or interactive state.

#### Semantic Behavior

- **Presentational by default**: It exposes no role or ARIA attributes and accepts no children, so it is treated as decorative chrome rather than semantic content.
- **Theme-reactive coloring**: The separator color adapts automatically to the active appearance - darker under dark themes and stronger under high-contrast preferences - with no consumer wiring required.
- **No state or interaction**: There is no disabled, await, focus, or keyboard behavior - the element is inert and never enters the tab sequence.

#### Properties & Visual Configurations

The component defines no configurable props. The only intended customization point is the CSS custom property **`--mds-separator-background`** (default `rgb(var(--magma-border-default))`) that overrides the divider color; set it to a semantic color role so the divider keeps following the mode and the contrast preference.

For the semantic color roles the default value draws from, see [`agents/color.md`](../../../../agents/color.md).

## Read next

- [`examples.md`](examples.md) - correct usage, from the most common case
- [`mistakes.md`](mistakes.md) - the wrong forms, each with the right one
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-separator--docs) - the live examples, in the published Storybook of `main`
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`mistakes.md`](../../../../agents/mistakes.md) - the rules shared by every component

## CSS custom properties

| Property | Description |
| --- | --- |
| `--mds-separator-background` | Background color of the separator element. |

## Dependencies

Used by: `mds-price-table-list`.
