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

@@ -17,14 +17,19 @@ export interface RadioGroupItem extends Pick<RadioGroupItemProps, 'disabled' | '
description?: string
}
export interface RadioGroupProps<T> extends Omit<RadioGroupRootProps, 'asChild' | 'dir' | 'orientation'> {
export interface RadioGroupProps<T> extends Pick<RadioGroupRootProps, 'defaultValue' | 'disabled' | 'loop' | 'modelValue' | 'name' | 'required'> {
/**
* The element or component this component should render as.
* @defaultValue `div`
*/
as?: any
legend?: string
items?: T[]
size?: RadioGroupVariants['size']
color?: RadioGroupVariants['color']
/**
* The orientation the radio buttons are laid out.
* @defaultValue `'vertical'`
* @defaultValue 'vertical'
*/
orientation?: RadioGroupRootProps['orientation']
class?: any