chore(components): improve props

This commit is contained in:
Benjamin Canac
2024-06-28 18:13:03 +02:00
parent c9f9a248b7
commit 673064dee5
38 changed files with 260 additions and 137 deletions

View File

@@ -11,7 +11,12 @@ const progress = tv({ extend: tv(theme), ...(appConfig.ui?.progress || {}) })
type ProgressVariants = VariantProps<typeof progress>
export interface ProgressProps extends Omit<ProgressRootProps, 'asChild' | 'max'> {
export interface ProgressProps extends Pick<ProgressRootProps, 'getValueLabel' | 'modelValue'> {
/**
* The element or component this component should render as.
* @defaultValue `div`
*/
as?: any
max?: number | Array<any>
status?: boolean
inverted?: boolean
@@ -19,7 +24,7 @@ export interface ProgressProps extends Omit<ProgressRootProps, 'asChild' | 'max'
color?: ProgressVariants['color']
/**
* The orientation of the progress bar.
* @defaultValue `'horizontal'`
* @defaultValue 'horizontal'
*/
orientation?: ProgressVariants['orientation']
animation?: ProgressVariants['animation']