AsideTrigger

OverviewExamplesPropertiesSlotsDependenciesUsageIntegration

Rail button that toggles a `<nord-aside-drawer>` inside `<nord-aside>`.

Properties

PropertyAttribute Description TypeDefault
drawerdrawerThe id of the `<nord-aside-drawer>` this trigger toggles. Required.string''
iconiconNord icon name. Shortcut for the common case; equivalent to placing `<nord-icon name="…">` in the default slot.string | undefined
labellabelAccessible label (used for `aria-label` on the host).string''
badgebadgeOptional badge content (forwarded to inner `<nord-badge>`).string | number | undefined
disableddisabledMakes the trigger disabled. Takes precedence over the target drawer's `disabled` state.booleanfalse
tooltiptooltipWhether to render a `<nord-tooltip>` showing `label` on hover/focus. Defaults to `true` — set `tooltip="false"` (or omit `label`) to opt out.booleantrue

Slots

Slot name Description
Default slotOverrides the `icon` attribute for custom leading content.
tooltipOverrides the tooltip body (falls back to `label`). Lets consumers add icons, shortcut hints, etc. — anything beyond the plain string label.

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use inside <nord-aside slot="rail"> to toggle a specific <nord-aside-drawer>.
  • Set drawer to the target drawer’s id and label for the accessible name.
  • Use the icon attribute for the common case; place a <nord-icon> (or other element) in the default slot when you need full control.
  • Use the badge attribute to surface a count or status indicator.

Don’t

  • Don’t use for navigation-only rail items (no drawer to toggle) — place a plain <nord-button> or <a> in the rail slot instead.
  • Don’t set drawer to a missing or disabled drawer id. The trigger will warn and behave as inert.
  • Don’t omit label — the rail button has no visible text, so the accessible name comes from this attribute.

Additional considerations

  • disabled on the trigger takes precedence over the target drawer’s disabled state.
  • The active state mirrors the ancestor <nord-aside>’s active-drawer and is exposed for styling via [active].

Integration

For integration guidelines, please see Web Components documentation .

Was this page helpful?

Yes No

We use this feedback to improve our documentation.