import { Switch as Kobalte } from "@kobalte/core/switch" import { Show, splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" import "./switch-v2.css" export interface SwitchProps extends ParentProps> { hideLabel?: boolean } export function Switch(props: SwitchProps) { const [local, others] = splitProps(props, ["children", "class", "hideLabel"]) return ( {(label) => ( {label()} )} ) }