// Representative Story: File (item, shortcut, disabled, separator, sub menu, destructive), Edit, View (label, checkbox, radio).
export const All: Story = {
name: "Menubar",
parameters: { layout: "fullscreen", controls: { disable: true } },
render: () => (
),
}
function FocusSpecimen({ open = false }: { open?: boolean }) {
return (
파일
새로 만들기
저장 (사용 불가)
사용 불가
)
}
export const TriggerFocus: Story = {
tags: ["verification"],
render: () => ,
play: async ({ canvasElement }) => {
canvasElement.querySelector('[data-slot="menubar-trigger"]')?.focus()
},
}
export const OpenFocus: Story = {
tags: ["verification"],
render: () => ,
play: async ({ canvasElement }) => {
// Verification only: actual trigger focus while its real menu is open.
// Production keyboard opening still moves focus into the menu (Radix default).
canvasElement.querySelector('[data-slot="menubar-trigger"]')?.focus()
},
}