UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

18 lines (17 loc) 594 B
import React from 'react'; import { NonCancelableEventHandler } from '../internal/events'; import { BaseCheckboxProps } from '../checkbox/base-checkbox'; export interface ToggleProps extends BaseCheckboxProps { children?: React.ReactNode; onChange?: NonCancelableEventHandler<ToggleProps.ChangeDetail>; } export declare namespace ToggleProps { interface Ref { focus(): void; } interface ChangeDetail { checked: boolean; } } declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<ToggleProps.Ref>>; export default Toggle;