| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import styles from '@patternfly/react-styles/css/components/HelperText/helper-text.mjs'; |
| 4 |
import { css } from '@patternfly/react-styles'; |
| 5 |
export const HelperText = (_a) => { |
| 6 |
var { children, className, component = 'div', id, isLiveRegion = false, 'aria-label': ariaLabel } = _a, props = __rest(_a, ["children", "className", "component", "id", "isLiveRegion", 'aria-label']); |
| 7 |
const Component = component; |
| 8 |
return (_jsx(Component, Object.assign({ id: id, className: css(styles.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), (component === 'ul' && { role: 'list', 'aria-label': ariaLabel }), props, { children: children }))); |
| 9 |
}; |
| 10 |
HelperText.displayName = 'HelperText'; |
| 11 |
//# sourceMappingURL=HelperText.js.map |