@olleemilsson/flowbite-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
8 lines (7 loc) • 422 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useTheme } from '../Flowbite/ThemeContext';
export const HelperText = ({ value, children, color = 'default', className, ...props }) => {
const theme = useTheme().theme.helperText;
return (_jsx("p", { className: classNames(theme.base, theme.colors[color], className), ...props, children: value ?? children ?? '' }));
};