UNPKG

@olleemilsson/flowbite-react

Version:

<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <

23 lines (22 loc) 710 B
import type { ComponentProps, FC } from 'react'; import { DeepPartial } from '..'; import { FlowbiteBoolean, FlowbiteColors } from '../Flowbite/FlowbiteTheme'; export interface FlowbiteToggleSwitchTheme { base: string; active: FlowbiteBoolean; toggle: { base: string; checked: FlowbiteBoolean & { color: FlowbiteColors; }; }; label: string; } export declare type ToggleSwitchProps = Omit<ComponentProps<'button'>, 'onChange'> & { checked: boolean; label: string; color?: FlowbiteColors; onChange: (checked: boolean) => void; theme?: DeepPartial<FlowbiteToggleSwitchTheme>; }; export declare const ToggleSwitch: FC<ToggleSwitchProps>;