Props
| Prop | Type | Default | Notes |
|---|---|---|---|
for | string | '' | |
expanded | boolean | false | |
disabled | boolean | false | |
label | string | Toggle navigation | |
closed-icon | string | '' | |
opened-icon | string | '' |
StellarUI
Toggleable menu affordance that mirrors the shipped navicon contract while adding a custom icon prop and slot.
<stellar-button-nav
for="navicon-demo-menu"
label="Toggle menu"
>
</stellar-button-nav>Complete props, events, slots, and implementation notes for the shipped navicon.
| Prop | Type | Default | Notes |
|---|---|---|---|
for | string | '' | |
expanded | boolean | false | |
disabled | boolean | false | |
label | string | Toggle navigation | |
closed-icon | string | '' | |
opened-icon | string | '' |
| Event | Source | Notes |
|---|---|---|
click | native | Bubbles from the internal button whenever the user activates the control. |
input / change | stellar-button-nav | Emitted after a user toggle changes expanded. |
| Slot | Notes |
|---|---|
closed-icon | Optional closed-state icon override. Replaces the built-in hamburger face for the closed state. |
opened-icon | Optional opened-state icon override. Replaces the built-in close face for the open state. |