Are you an LLM? You can read better optimized documentation at /api/css/menu.item.md for this page in Markdown format
CSS: menu.item
.item — A menu entry (InstUI Menu.Item); add -disabled, -highlighted, or -active/[aria-checked].
Accessibility
Mark a checked item with aria-checked="true" (same styling as -active).
Usage
css
@import "@pantoken/components/components.css";
@import "@pantoken/components/menu.item.css";Modifiers
| Modifier | Description |
|---|---|
.-active | Active/checked highlight; same styling as [aria-checked="true"]. |
.-disabled | Muted, non-interactive. |
.-highlighted | Highlighted background/text (keyboard focus or hover). |
Parts
| Part | Description |
|---|---|
.item-info | Secondary info text within the item. |
States
| State | Description |
|---|---|
[aria-checked="true"] | — |
Tokens consumed
| Token | Type | Value |
|---|---|---|
--instui-component-menu-item-active-background | <color> | LightDarklight-dark(#1D354F, #EEF4FD) |
--instui-component-menu-item-active-label-color | <color> | LightDarklight-dark(#ffffff, #1D354F) |
--instui-component-menu-item-font-family | [ <font-family-name> | <generic-font-family> ]# | Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif |
--instui-component-menu-item-font-size | <length> | 1rem |
--instui-component-menu-item-font-weight | <integer> | 400 |
--instui-component-menu-item-highlighted-background | <color> | LightDarklight-dark(#EEF4FD, #2E5177) |
--instui-component-menu-item-highlighted-label-color | <color> | LightDarklight-dark(#273540, #F2F4F5) |
--instui-component-menu-item-highlighted-label-info-color | <color> | LightDarklight-dark(#273540, #F2F4F5) |
--instui-component-menu-item-label-color | <color> | LightDarklight-dark(#273540, #ffffff) |
--instui-component-menu-item-label-info-color | <color> | LightDarklight-dark(#576773, #AAB0B5) |
--instui-component-menu-item-line-height | <length> | 1.25rem |
--instui-component-menu-item-padding-horizontal | <length> | 0.75rem |
--instui-component-menu-item-padding-vertical | <length> | 0.5rem |
--instui-component-menu-item-selected-highlighted-background | <color> | LightDarklight-dark(#234465, #ffffff) |
--instui-opacity-disabled | <number> | 0.5 |