1
1
mirror of https://github.com/theoludwig/react-component-form.git synced 2024-07-17 07:30:13 +02:00
react-component-form/example/components/design/TextSpecial.tsx

18 lines
392 B
TypeScript
Raw Permalink Normal View History

import classNames from "clsx"
2022-08-26 20:19:31 +02:00
export interface TextSpecialProps
extends React.ComponentPropsWithoutRef<"span"> {}
2022-08-26 20:19:31 +02:00
export const TextSpecial: React.FC<TextSpecialProps> = (props) => {
const { children, className, ...rest } = props
return (
<span
className={classNames("text-green-800 dark:text-green-400", className)}
2022-08-26 20:19:31 +02:00
{...rest}
>
{children}
</span>
)
}