@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
12 lines (11 loc) • 550 B
JavaScript
import React from 'react';
import clsx from 'clsx';
import styles from './styles.css.js';
var MobileExpandableGroup = function (_a) {
var _b;
var children = _a.children, trigger = _a.trigger, open = _a.open;
return (React.createElement("div", { className: clsx(styles.root) },
React.createElement("div", { className: styles.trigger }, trigger),
React.createElement("div", { className: clsx(styles.dropdown, (_b = {}, _b[styles.open] = open, _b)), "data-open": open }, children)));
};
export default MobileExpandableGroup;