feat(components): uniformize colors and variants (#141)

This commit is contained in:
Benjamin Canac
2024-07-09 10:45:26 +02:00
committed by GitHub
parent 18c5ead1bd
commit c018c23224
115 changed files with 4366 additions and 4191 deletions

View File

@@ -18,7 +18,7 @@ export interface KbdProps {
*/
as?: any
value: KbdKey | string
color?: KbdVariants['color']
variant?: KbdVariants['variant']
size?: KbdVariants['size']
class?: any
}
@@ -41,7 +41,7 @@ const { getKbdKey } = useKbd()
</script>
<template>
<Primitive :as="as" :class="kbd({ color, size, class: props.class })">
<Primitive :as="as" :class="kbd({ variant, size, class: props.class })">
<slot>
{{ getKbdKey(value) }}
</slot>