import { Checkbox as Kobalte } from "@kobalte/core/checkbox" import { Show, splitProps, type JSX } from "solid-js" import type { ComponentProps } from "solid-js" import "./checkbox-v2.css" export interface CheckboxV2Props extends ComponentProps { label: JSX.Element description?: JSX.Element hideLabel?: boolean } export function CheckboxV2(props: CheckboxV2Props) { const [local, others] = splitProps(props, ["class", "classList", "label", "description", "hideLabel"]) return (
{local.label} {(description) => {description()}}
) }