feat(ButtonGroup): new component (#88)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Romain Hamel
2024-05-07 11:19:25 +02:00
committed by GitHub
parent 2c5d7ccf70
commit 43066fd9ea
12 changed files with 317 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import { buttonGroupVariantWithRoot } from './button-group'
export default (config: { colors: string[] }) => {
return {
slots: {
@@ -10,6 +12,7 @@ export default (config: { colors: string[] }) => {
trailingIcon: 'shrink-0 text-gray-400 dark:text-gray-500'
},
variants: {
...buttonGroupVariantWithRoot,
size: {
xs: {
base: 'px-2 py-1 text-xs',