mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
feat(Alert/Toast)!: add orientation prop
This commit is contained in:
@@ -14,6 +14,9 @@ describe('Alert', () => {
|
||||
['with description', { props: { ...props, description: 'Description' } }],
|
||||
['with icon', { props: { ...props, icon: 'i-lucide-lightbulb' } }],
|
||||
['with avatar', { props: { ...props, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with actions', { props: { ...props, actions: [{ label: 'Action' }] } }],
|
||||
['with orientation vertical', { props: { ...props, icon: 'i-lucide-lightbulb', description: 'This is a description', actions: [{ label: 'Action' }], orientation: 'vertical' as const } }],
|
||||
['with orientation horizontal', { props: { ...props, icon: 'i-lucide-lightbulb', description: 'This is a description', actions: [{ label: 'Action' }], orientation: 'horizontal' as const } }],
|
||||
['with close', { props: { ...props, close: true } }],
|
||||
['with closeIcon', { props: { ...props, close: true, closeIcon: 'i-lucide-trash' } }],
|
||||
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant } }]),
|
||||
|
||||
Reference in New Issue
Block a user