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