# Slide Nav (`.z-slidenav`)

> Arrow-style previous/next buttons for carousels and lightboxes, with a large variant and container positioning.

- **Kind:** css
- **Category:** navigation

## CSS Variables

| Variable | Default | Scope | Affects | Description |
| --- | --- | --- | --- | --- |
| `--z-slidenav-active-bg` | `var(--z-bg)` | `.z-slidenav` | `background-color` | Active background base color, mixed with transparency using `--z-slidenav-active-bg-o`. |
| `--z-slidenav-active-bg-o` | `100%` | `.z-slidenav` | `background-color` | Active background opacity percentage used in the mix. |
| `--z-slidenav-active-color` | `var(--z-bg-f)` | `.z-slidenav` | `color` | Active icon base color, mixed with transparency using `--z-slidenav-active-color-o`. |
| `--z-slidenav-active-color-o` | `100%` | `.z-slidenav` | `color` | Active icon opacity percentage used in the mix. |
| `--z-slidenav-bg` | `var(--z-bg)` | `.z-slidenav` | `background-color` | Background base color, mixed with transparency using `--z-slidenav-bg-o`. |
| `--z-slidenav-bg-o` | `100%` | `.z-slidenav` | `background-color` | Background opacity percentage used in the mix. |
| `--z-slidenav-border-color` | `var(--z-border)` | `.z-slidenav` | `border-color` | Border base color, mixed with transparency using `--z-slidenav-border-color-o`. |
| `--z-slidenav-border-color-o` | `var(--z-border-o)` | `.z-slidenav` | `border-color` | Border opacity percentage used in the mix. |
| `--z-slidenav-border-width` | `1px` | `.z-slidenav` | `border-width` | Border width of the arrow button. |
| `--z-slidenav-height` | `2.25rem` | `.z-slidenav` | `height` | Height of the arrow button. |
| `--z-slidenav-hover-bg` | `var(--z-bg)` | `.z-slidenav` | `background-color` | Hover background base color, mixed with transparency using `--z-slidenav-hover-bg-o`. |
| `--z-slidenav-hover-bg-o` | `100%` | `.z-slidenav` | `background-color` | Hover background opacity percentage used in the mix. |
| `--z-slidenav-hover-color` | `var(--z-bg-f)` | `.z-slidenav` | `color` | Hover icon base color, mixed with transparency using `--z-slidenav-hover-color-o`. |
| `--z-slidenav-hover-color-o` | `100%` | `.z-slidenav` | `color` | Hover icon opacity percentage used in the mix. |
| `--z-slidenav-large-padding` | `10px` | `.z-slidenav-lg` | `padding` | Padding of the large variant. |
| `--z-slidenav-radius` | `9999px` | `.z-slidenav` | `border-radius` | Corner radius of the arrow button. |
| `--z-slidenav-shadow` | `var(--z-global-shadow-small)` | `.z-slidenav` | `box-shadow` | Box shadow of the arrow button. |
| `--z-slidenav-svg-height` | `1rem` | `.z-slidenav` | `height` | Height of the arrow icon. |
| `--z-slidenav-svg-width` | `1rem` | `.z-slidenav` | `width` | Width of the arrow icon. |
| `--z-slidenav-width` | `2.25rem` | `.z-slidenav` | `width` | Width of the arrow button. |

## CSS Classes

| Class | Role | Applies to | Description |
| --- | --- | --- | --- |
| `.z-slidenav` | `root` | `.z-slidenav` | Root class of an arrow button. |
| `.z-slidenav-container` | `element` | `.z-slidenav` | Wrapper positioning arrows over the content edges. |
| `.z-slidenav-lg` | `element` | `.z-slidenav` | Large arrow variant. |

## Accessibility

> Carousel/lightbox arrows receive `aria-label` and `aria-controls` from their controller; standalone arrows need their own labels.

## Notes

- Slidenav is a CSS layer; `data-part="previous"`/`data-part="next"` wires arrows into slider/slideshow, and the lightbox uses the same class for its chrome buttons.

## 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

- [Slider](https://next.0build.dev/docs/components/slider.md)
- [Slideshow](https://next.0build.dev/docs/components/slideshow.md)
- [Lightbox](https://next.0build.dev/docs/components/lightbox.md)
