mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 08:50:34 +01:00
feat(Input/InputMenu/Select/SelectMenu): handle avatar prop
This commit is contained in:
@@ -21,11 +21,17 @@ describe('Input', () => {
|
||||
['with required', { props: { required: true } }],
|
||||
['with file type', { props: { type: 'file' } }],
|
||||
['with icon', { props: { icon: 'i-heroicons-magnifying-glass' } }],
|
||||
['with leading and icon', { props: { leading: true, icon: 'i-heroicons-magnifying-glass' } }],
|
||||
['with leadingIcon', { props: { leadingIcon: 'i-heroicons-magnifying-glass' } }],
|
||||
['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-magnifying-glass' } }],
|
||||
['with trailingIcon', { props: { trailingIcon: 'i-heroicons-magnifying-glass' } }],
|
||||
['with leading and icon', { props: { leading: true, icon: 'i-heroicons-arrow-left' } }],
|
||||
['with leadingIcon', { props: { leadingIcon: 'i-heroicons-arrow-left' } }],
|
||||
['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-arrow-right' } }],
|
||||
['with trailingIcon', { props: { trailingIcon: 'i-heroicons-arrow-right' } }],
|
||||
['with avatar', { props: { avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with avatar and leadingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, leadingIcon: 'i-heroicons-arrow-left' } }],
|
||||
['with avatar and trailingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, trailingIcon: 'i-heroicons-arrow-right' } }],
|
||||
['with loading', { props: { loading: true } }],
|
||||
['with loading and avatar', { props: { loading: true, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with loading trailing', { props: { loading: true, trailing: true } }],
|
||||
['with loading trailing and avatar', { props: { loading: true, trailing: true, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with loadingIcon', { props: { loading: true, loadingIcon: 'i-heroicons-sparkles' } }],
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { size } }]),
|
||||
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { variant } }]),
|
||||
|
||||
Reference in New Issue
Block a user