mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
feat(components): uniformize colors and variants (#141)
This commit is contained in:
@@ -5,14 +5,14 @@ import theme from '#build/ui/kbd'
|
||||
|
||||
describe('Kbd', () => {
|
||||
const sizes = Object.keys(theme.variants.size) as any
|
||||
const colors = Object.keys(theme.variants.color) as any
|
||||
const variants = Object.keys(theme.variants.variant) as any
|
||||
|
||||
it.each([
|
||||
// Props
|
||||
['with value', { props: { value: 'K' } }],
|
||||
['with as', { props: { value: 'K', as: 'span' } }],
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { value: 'K', size } }]),
|
||||
...colors.map((color: string) => [`with color ${color}`, { props: { value: 'K', color } }]),
|
||||
...variants.map((variant: string) => [`with variant ${variant}`, { props: { value: 'K', variant } }]),
|
||||
['with class', { props: { value: 'K', class: 'font-bold' } }],
|
||||
// Slots
|
||||
['with default slot', { slots: { default: () => 'Default slot' } }]
|
||||
|
||||
Reference in New Issue
Block a user