feat(Kbd): add color prop & soft variant (#4549)

This commit is contained in:
Alex
2025-07-21 17:22:07 +05:00
committed by GitHub
parent 657ec228b5
commit f33660035f
15 changed files with 479 additions and 403 deletions

View File

@@ -12,7 +12,8 @@ describe('Kbd', () => {
// Props
['with value', { props: { value: 'K' } }],
...sizes.map((size: string) => [`with size ${size}`, { props: { value: 'K', size } }]),
...variants.map((variant: string) => [`with variant ${variant}`, { props: { value: 'K', variant } }]),
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { value: 'K', variant } }]),
...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { value: 'K', variant, color: 'neutral' } }]),
['with as', { props: { value: 'K', as: 'span' } }],
['with class', { props: { value: 'K', class: 'font-bold' } }],
// Slots