feat(DropdownMenu): handle size prop (#125)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Silver343
2024-06-19 10:50:25 +01:00
committed by GitHub
parent 5b2e7d8bad
commit dfa99362d4
12 changed files with 1753 additions and 1162 deletions

View File

@@ -46,6 +46,7 @@ describe('InputMenu', () => {
['with loadingIcon', { props: { ...props, loading: true, loadingIcon: 'i-heroicons-sparkles' } }],
['with trailingIcon', { props: { ...props, trailingIcon: 'i-heroicons-chevron-down' } }],
['with selectedIcon', { props: { ...props, selectedIcon: 'i-heroicons-check' } }],
['with arrow', { props: { ...props, arrow: true } }],
...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size } }]),
...colors.map((color: string) => [`with color ${color}`, { props: { ...props, color } }]),
...variants.map((variant: string) => [`with variant ${variant}`, { props: { ...props, variant } }]),