mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(Kbd): add color prop
This commit is contained in:
@@ -10,6 +10,9 @@ describe('Kbd', () => {
|
||||
['with size xs', { props: { value: 'K', size: 'xs' as const } }],
|
||||
['with size sm', { props: { value: 'K', size: 'sm' as const } }],
|
||||
['with size md', { props: { value: 'K', size: 'md' as const } }],
|
||||
['with color white', { props: { value: 'K', color: 'white' as const } }],
|
||||
['with color gray', { props: { value: 'K', color: 'gray' as const } }],
|
||||
['with color black', { props: { value: 'K', color: 'black' as const } }],
|
||||
['with default slot', { slots: { default: () => 'Default slot' } }]
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: KbdProps, slots?: any }) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Kbd)
|
||||
|
||||
Reference in New Issue
Block a user