@engie-group/fluid-design-system
Version:
The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.
28 lines (27 loc) • 776 B
TypeScript
import { Scale, Variant } from '../../variations';
export declare const TOGGLE_VARIANTS: readonly ["brand", "ai"];
export type ToggleVariant = Extract<Variant, (typeof TOGGLE_VARIANTS)[number]>;
export declare const TOGGLE_SCALES: readonly ["md", "lg", "xl"];
export type ToggleScale = Extract<Scale, (typeof TOGGLE_SCALES)[number]>;
export type ToggleProperties = {
/**
* Text label
*/
label?: string;
/**
* Toggle color variant (default: 'brand')
**/
variant?: ToggleVariant;
/**
* Toggle scale
**/
scale?: ToggleScale;
/**
* Whether the toggle color is inherited from its parent or not
*/
isColorInherited?: boolean;
/**
* Icon displayed inside the handle
*/
handleIcon?: string;
};