feat(DropdownMenu): new component (#37)

This commit is contained in:
Benjamin Canac
2024-03-29 13:42:02 +01:00
committed by GitHub
parent 2fbf47e1fc
commit 44033508a7
25 changed files with 735 additions and 215 deletions

View File

@@ -27,7 +27,7 @@ describe('NavigationMenu', () => {
['basic case', { props: { links } }],
['with vertical orientation', { props: { links, orientation: 'vertical' as const } }],
['with class', { props: { links, class: 'w-48' } }],
['with ui', { props: { links, ui: { icon: 'w-4 h-4' } } }]
['with ui', { props: { links, ui: { linkLeadingIcon: 'size-4' } } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: NavigationMenuProps<typeof links[number]>, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, NavigationMenu)
expect(html).toMatchSnapshot()