@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
20 lines (19 loc) • 761 B
TypeScript
import { KeyboardEventHandler } from 'react';
import { TableProps } from '../interfaces';
export interface SelectionControlProps {
className?: string;
selectionType: TableProps['selectionType'];
checked: boolean;
disabled: boolean;
name: string;
indeterminate?: boolean;
onChange?: () => void;
onShiftToggle?(shiftPressed: boolean): void;
onFocusUp?: KeyboardEventHandler;
onFocusDown?: KeyboardEventHandler;
scope?: 'col';
ariaLabel?: string;
rootTag?: 'td' | 'div';
tabIndex?: -1;
}
export default function SelectionControl({ selectionType, indeterminate, className, onShiftToggle, onFocusUp, onFocusDown, name, scope, ariaLabel, rootTag: RootTag, ...sharedProps }: SelectionControlProps): JSX.Element;