feat(Chip): new component (#886)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Conner Blanton
2023-11-19 06:04:07 -06:00
committed by GitHub
parent 6cc77a3e6c
commit d4f1b5ef82
8 changed files with 317 additions and 0 deletions

11
src/runtime/types/chip.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
import { chip } from '../ui.config'
import colors from '#ui-colors'
export type ChipSize = keyof typeof chip.size
export type ChipColor = 'gray' | typeof colors[number]
export type ChipPosition = keyof typeof chip.position
export interface Chip {
color?: ChipColor
position?: ChipPosition
}

View File

@@ -4,6 +4,7 @@ export * from './avatar'
export * from './badge'
export * from './breadcrumb'
export * from './button'
export * from './chip'
export * from './clipboard'
export * from './command-palette'
export * from './dropdown'