@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
15 lines (14 loc) • 511 B
JavaScript
import { __spreadArrays } from "tslib";
var defaultOptionDescription = function (option, parentGroup, selected, selectedAriaLabel) {
var messageParts = __spreadArrays([
parentGroup && parentGroup.label,
option.value,
option.label,
option.description,
option.labelTag
], (option.tags || []), [
selected ? selectedAriaLabel : null
]).filter(function (el) { return !!el; });
return messageParts.join(' ');
};
export default defaultOptionDescription;