UNPKG

soda-material

Version:

A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)

13 lines (12 loc) 579 B
/// <reference types="react" /> import './switch.scss'; /** * @specs https://m3.material.io/components/switch/specs */ export declare const Switch: import("react").ForwardRefExoticComponent<{ checked?: boolean | undefined; onChange?: ((checked: boolean) => void) | undefined; defaultChecked?: boolean | undefined; children?: React.ReactNode; disabled?: boolean | undefined; } & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "checked" | "disabled" | "defaultChecked" | "children" | "onChange"> & import("react").RefAttributes<HTMLDivElement>>;