@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
10 lines • 539 B
TypeScript
import { TableProps } from '../interfaces';
import { SelectionProps } from './interfaces';
type SelectionOptions<T> = Pick<TableProps<T>, 'ariaLabels' | 'isItemDisabled' | 'items' | 'loading' | 'onSelectionChange' | 'selectedItems' | 'selectionType' | 'trackBy'>;
export declare function useSelection<T>(options: SelectionOptions<T>): {
isItemSelected: (item: T) => boolean;
getSelectAllProps?: () => SelectionProps;
getItemSelectionProps?: (item: T) => SelectionProps;
};
export {};
//# sourceMappingURL=use-selection.d.ts.map