1 | import classNames from 'classnames';
|
2 | import * as React from 'react';
|
3 | import { useBootstrapPrefix } from './ThemeProvider';
|
4 | import { jsx as _jsx } from "react/jsx-runtime";
|
5 | const FormText = React.forwardRef(
|
6 | ({
|
7 | bsPrefix,
|
8 | className,
|
9 | as: Component = 'small',
|
10 | muted,
|
11 | ...props
|
12 | }, ref) => {
|
13 | bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
14 | return _jsx(Component, { ...props,
|
15 | ref: ref,
|
16 | className: classNames(className, bsPrefix, muted && 'text-muted')
|
17 | });
|
18 | });
|
19 | FormText.displayName = 'FormText';
|
20 | export default FormText; |
\ | No newline at end of file |