chore(Button): update

This commit is contained in:
Benjamin Canac
2024-03-07 12:55:18 +01:00
parent 1530e82235
commit c90cea55a7
4 changed files with 129 additions and 55 deletions

View File

@@ -8,14 +8,16 @@ describe('Button', () => {
['with class', { props: { class: 'rounded-full font-bold' } }],
['with size', { props: { label: 'Button', size: 'lg' as const } }],
['with color', { props: { label: 'Button', color: 'red' as const } }],
// ['with variant', { props: { label: 'Button', variant: 'outline' } }],
['with variant outline', { props: { label: 'Button', variant: 'outline' as const } }],
['with variant soft', { props: { label: 'Button', variant: 'soft' as const } }],
['with variant ghost', { props: { label: 'Button', variant: 'ghost' as const } }],
['with variant link', { props: { label: 'Button', variant: 'link' as const } }],
['with icon', { props: { icon: 'i-heroicons-academic-cap' } }],
['with trailingIcon', { props: { trailing: true, trailingIcon: 'i-heroicons-arrow-right' } }],
['with leadingIcon', { props: { leading: true, leadingIcon: 'i-heroicons-arrow-left' } }],
['with loading', { props: { loading: true } }],
['with loadingIcon', { props: { loading: true, loadingIcon: 'i-heroicons-sparkles' } }],
['with disabled', { props: { label: 'Button', disabled: true } }],
['with padded', { props: { label: 'Button', padded: false } }],
['with block', { props: { label: 'Button', block: true } }],
['with square', { props: { label: 'Button', square: true } }],
['with truncate', { props: { label: 'Button', truncate: true } }],