@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
17 lines (16 loc) • 797 B
TypeScript
import React from 'react';
export interface AbstractSwitchProps extends React.HTMLAttributes<HTMLElement> {
controlId?: string;
controlClassName: string;
disabled?: boolean;
nativeControl: (props: React.InputHTMLAttributes<HTMLInputElement>) => React.ReactElement;
styledControl: React.ReactElement;
label?: React.ReactNode;
description?: React.ReactNode;
descriptionBottomPadding?: boolean;
ariaLabel?: string;
ariaLabelledby?: string;
ariaDescribedby?: string;
withoutLabel?: boolean;
}
export default function AbstractSwitch({ controlId, controlClassName, disabled, nativeControl, styledControl, label, description, descriptionBottomPadding, ariaLabel, ariaLabelledby, ariaDescribedby, withoutLabel, ...rest }: AbstractSwitchProps): JSX.Element;