{[
{
inlineSize: "13rem",
label: "≥ 64rem — rail",
layout: "rail" as const,
},
{
inlineSize: "4rem",
label: "≥ 48rem — railIcons",
layout: "railIcons" as const,
},
{
inlineSize: "22rem",
label: "< 48rem — bottom (or menu)",
layout: "bottom" as const,
},
].map((panel) => (
))}
),
}
/**
* The Narrow View, and the whole keyboard path: Tab to the trigger,
* Enter to open, Tab through real links, Escape to close.
*
* The trigger says **"Menu"** rather than carrying a bare hamburger,
* for the reason `IconButton` exists — a glyph is not a name.
*/
export const Interactive: Story = {
args: { items: STATION_ITEMS },
render: () => {
const NavMenuStory = () => {
const [isVisible, setIsVisible] = useState(false)
return (