mirror of
https://github.com/theoludwig/react-component-form.git
synced 2024-11-09 22:08:47 +01:00
18 lines
392 B
TypeScript
18 lines
392 B
TypeScript
|
import classNames from 'clsx'
|
||
|
|
||
|
export interface TextSpecialProps
|
||
|
extends React.ComponentPropsWithoutRef<'span'> {}
|
||
|
|
||
|
export const TextSpecial: React.FC<TextSpecialProps> = (props) => {
|
||
|
const { children, className, ...rest } = props
|
||
|
|
||
|
return (
|
||
|
<span
|
||
|
className={classNames('text-green-800 dark:text-green-400', className)}
|
||
|
{...rest}
|
||
|
>
|
||
|
{children}
|
||
|
</span>
|
||
|
)
|
||
|
}
|