mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(DropdownMenu): new component (#37)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user