UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

11 lines 797 B
import { __rest } from "tslib"; import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/HelperText/helper-text'; import { css } from '@patternfly/react-styles'; export const HelperText = (_a) => { var { children, className, component = 'div', id, isLiveRegion = false, 'aria-label': ariaLabel } = _a, props = __rest(_a, ["children", "className", "component", "id", "isLiveRegion", 'aria-label']); const Component = component; return (React.createElement(Component, Object.assign({ id: id, className: css(styles.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), (component === 'ul' && { role: 'list', 'aria-label': ariaLabel }), props), children)); }; HelperText.displayName = 'HelperText'; //# sourceMappingURL=HelperText.js.map