UNPKG

@serendie/ui

Version:

Adaptive UI component library as part of Serendie Design System by Mitsubishi Electric

11 lines (10 loc) 782 B
import { Switch as ArkSwitch, SwitchRootProps } from '@ark-ui/react'; import { RecipeVariantProps } from '../../../styled-system/css'; export declare const SwitchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb", import('../../../styled-system/types').SlotRecipeVariantRecord<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb">>; type SwitchItemProps = { label: string; helperText?: string; }; export type SwitchProps = SwitchRootProps & RecipeVariantProps<typeof SwitchStyle> & SwitchItemProps; export declare const Switch: import('react').ForwardRefExoticComponent<ArkSwitch.RootProps & {} & SwitchItemProps & import('react').RefAttributes<HTMLLabelElement>>; export {};