import { Control, Description, ErrorMessage, Input, Label, Root, Thumb } from "@kobalte/core/switch" import { Show, splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" import "./switch.css" export interface SwitchProps extends ParentProps> { // I think we should consolidate - ask designers. appearance?: "standard" | "compact" hideLabel?: boolean description?: string } export function Switch(props: SwitchProps) { const [local, others] = splitProps(props, ["children", "class", "appearance", "hideLabel", "description"]) return ( {(label) => ( )} {local.description} ) }