UNPKG

@swc-react/switch

Version:

React and Next.js wrapper of the @spectrum-web-components/switch component

8 lines (7 loc) 333 B
import type { EventName } from '@lit/react'; import { Switch as SpSwitch } from '@spectrum-web-components/switch'; import '@spectrum-web-components/switch/sp-switch.js'; export declare const Switch: import("@lit/react").ReactWebComponent<SpSwitch, { change: EventName<Event>; }>; export type SwitchType = EventTarget & SpSwitch;