UNPKG

721 BJavaScriptView Raw
1import * as React from 'react';
2import { css } from '@patternfly/react-styles';
3import styles from '@patternfly/react-styles/css/components/ToggleGroup/toggle-group';
4export var ToggleGroupItemVariant;
5(function (ToggleGroupItemVariant) {
6 ToggleGroupItemVariant["icon"] = "icon";
7 ToggleGroupItemVariant["text"] = "text";
8})(ToggleGroupItemVariant || (ToggleGroupItemVariant = {}));
9export const ToggleGroupItemElement = ({ variant, children }) => (React.createElement("span", { className: css(variant === 'icon' && styles.toggleGroupIcon, variant === 'text' && styles.toggleGroupText) }, children));
10ToggleGroupItemElement.displayName = 'ToggleGroupItemElement';
11//# sourceMappingURL=ToggleGroupItemElement.js.map
\No newline at end of file