UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

23 lines 725 B
import React from 'react'; import { BaseCheckboxProps } from '../checkbox/base-checkbox'; import { NonCancelableEventHandler } from '../internal/events'; export interface ToggleProps extends BaseCheckboxProps { /** * The control's label that's displayed next to the toggle. Clicking this will invoke a state change. * @displayname label */ children?: React.ReactNode; onChange?: NonCancelableEventHandler<ToggleProps.ChangeDetail>; } export declare namespace ToggleProps { interface Ref { /** * Sets input focus onto the UI control. */ focus(): void; } interface ChangeDetail { checked: boolean; } } //# sourceMappingURL=interfaces.d.ts.map