mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
test(NavigationMenu): improve
This commit is contained in:
@@ -88,7 +88,7 @@ describe('NavigationMenu', () => {
|
|||||||
...colors.map((highlightColor: string) => [`with highlight color ${highlightColor}`, { props: { ...props, highlight: true, highlightColor } }]),
|
...colors.map((highlightColor: string) => [`with highlight color ${highlightColor}`, { props: { ...props, highlight: true, highlightColor } }]),
|
||||||
['with trailingIcon', { props: { ...props, trailingIcon: 'i-heroicons-plus' } }],
|
['with trailingIcon', { props: { ...props, trailingIcon: 'i-heroicons-plus' } }],
|
||||||
['with class', { props: { ...props, class: 'w-48' } }],
|
['with class', { props: { ...props, class: 'w-48' } }],
|
||||||
['with ui', { props: { items, ui: { itemLeadingIcon: 'size-4' } } }],
|
['with ui', { props: { ...props, ui: { itemLeadingIcon: 'size-4' } } }],
|
||||||
// Slots
|
// Slots
|
||||||
['with item slot', { props, slots: { item: () => 'Item slot' } }],
|
['with item slot', { props, slots: { item: () => 'Item slot' } }],
|
||||||
['with item-leading slot', { props, slots: { 'item-leading': () => 'Item leading slot' } }],
|
['with item-leading slot', { props, slots: { 'item-leading': () => 'Item leading slot' } }],
|
||||||
|
|||||||
Reference in New Issue
Block a user