mirror of
https://github.com/theoludwig/react-component-form.git
synced 2024-07-17 07:30:13 +02:00
20 lines
400 B
TypeScript
20 lines
400 B
TypeScript
import classNames from 'clsx'
|
|
|
|
export interface LinkProps extends React.ComponentPropsWithoutRef<'a'> {}
|
|
|
|
export const Link: React.FC<LinkProps> = (props) => {
|
|
const { children, className, ...rest } = props
|
|
|
|
return (
|
|
<a
|
|
className={classNames(
|
|
'text-green-800 hover:underline dark:text-green-400',
|
|
className
|
|
)}
|
|
{...rest}
|
|
>
|
|
{children}
|
|
</a>
|
|
)
|
|
}
|