big format
This commit is contained in:
parent
8729edc5e0
commit
1ea3a8eb9b
183 changed files with 2691 additions and 2559 deletions
|
|
@ -9,7 +9,14 @@ export interface CheckboxProps extends ParentProps<ComponentProps<typeof Kobalte
|
|||
}
|
||||
|
||||
export function Checkbox(props: CheckboxProps) {
|
||||
const [local, others] = splitProps(props, ["children", "class", "label", "hideLabel", "description", "icon"])
|
||||
const [local, others] = splitProps(props, [
|
||||
"children",
|
||||
"class",
|
||||
"label",
|
||||
"hideLabel",
|
||||
"description",
|
||||
"icon",
|
||||
])
|
||||
const resolved = children(() => local.children)
|
||||
return (
|
||||
<Kobalte {...others} data-component="checkbox">
|
||||
|
|
@ -35,7 +42,9 @@ export function Checkbox(props: CheckboxProps) {
|
|||
</Kobalte.Label>
|
||||
</Show>
|
||||
<Show when={local.description}>
|
||||
<Kobalte.Description data-slot="checkbox-description">{local.description}</Kobalte.Description>
|
||||
<Kobalte.Description data-slot="checkbox-description">
|
||||
{local.description}
|
||||
</Kobalte.Description>
|
||||
</Show>
|
||||
<Kobalte.ErrorMessage data-slot="checkbox-error" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,11 @@ export function DialogRoot(props: DialogProps) {
|
|||
return (
|
||||
<Kobalte {...others}>
|
||||
<Show when={props.trigger}>
|
||||
<Kobalte.Trigger ref={trigger} data-component="dialog-trigger" onFocusIn={handleTriggerFocus}>
|
||||
<Kobalte.Trigger
|
||||
ref={trigger}
|
||||
data-component="dialog-trigger"
|
||||
onFocusIn={handleTriggerFocus}
|
||||
>
|
||||
{props.trigger}
|
||||
</Kobalte.Trigger>
|
||||
</Show>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue