# Leader (`.z-leader`)

> Dot-leader fill between a label and a value, as in tables of contents.

- **Kind:** css
- **Category:** content

## CSS Variables

| Variable | Default | Scope | Affects | Description |
| --- | --- | --- | --- | --- |
| `--z-leader-spacing` | `1rem` | `.z-leader-fill::after` | `margin-inline-start` | Inline-start margin separating the fill from the label. |

## CSS Classes

| Class | Role | Applies to | Description |
| --- | --- | --- | --- |
| `.z-leader` | `root` | `.z-leader` | Root class of the leader row. |
| `.z-leader-fill` | `modifier` | `.z-leader` | The dotted fill element stretching between label and value. |
| `.z-leader-hide` | `modifier` | `.z-leader` | Hides the leader fill (e.g. on small screens). |

## Notes

- Leader is a CSS layer: a flex row with a label, `.z-leader-fill`, and a value.

## Guides

- [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md)
- [Translating Components](https://next.0build.dev/docs/guides/i18n.md)
- [Icon Resolution](https://next.0build.dev/docs/guides/icons.md)
- [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md)
- [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md)
- [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md)
- [Utilities](https://next.0build.dev/docs/guides/utilities.md)
- [Runtime](https://next.0build.dev/docs/guides/runtime.md)

## Related

- [List](https://next.0build.dev/docs/components/list.md)
