@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
14 lines • 649 B
JavaScript
import { getTestOptionIndexes } from '../../internal/components/options-list/utils/test-indexes';
export const getItemProps = ({ option, index, getOptionProps, filteringValue, checkboxes = false }) => {
const optionProps = getOptionProps(option, index);
optionProps.filteringValue = filteringValue;
const { inGroupIndex, groupIndex, throughIndex } = getTestOptionIndexes(option) || {};
return {
...optionProps,
hasCheckbox: checkboxes,
['data-group-index']: groupIndex,
['data-child-index']: inGroupIndex,
['data-test-index']: throughIndex,
};
};
//# sourceMappingURL=get-item-props.js.map