mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +01:00
feat(Alert/Toast)!: add orientation prop
This commit is contained in:
@@ -33,7 +33,8 @@ describe('Toast', () => {
|
||||
['with icon', { props: { ...props, icon: 'i-lucide-rocket' } }],
|
||||
['with avatar', { props: { ...props, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with actions', { props: { ...props, actions: [{ label: 'Action' }] } }],
|
||||
['with description actions', { props: { ...props, description: 'This is a toast', actions: [{ label: 'Action' }] } }],
|
||||
['with orientation vertical', { props: { ...props, icon: 'i-lucide-rocket', description: 'This is a toast', actions: [{ label: 'Action' }], orientation: 'vertical' as const } }],
|
||||
['with orientation horizontal', { props: { ...props, icon: 'i-lucide-rocket', description: 'This is a toast', actions: [{ label: 'Action' }], orientation: 'horizontal' as const } }],
|
||||
['without close', { props: { ...props, close: false } }],
|
||||
['with closeIcon', { props: { ...props, closeIcon: 'i-lucide-trash' } }],
|
||||
['with type', { props: { ...props, type: 'background' as const } }],
|
||||
|
||||
Reference in New Issue
Block a user