This repository has been archived on 2024-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
react-component-form/example/components/design/Link.tsx

20 lines
401 B
TypeScript
Raw Normal View History

import classNames from "clsx"
2022-08-26 20:19:31 +02:00
export interface LinkProps extends React.ComponentPropsWithoutRef<"a"> {}
2022-08-26 20:19:31 +02:00
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,
2022-08-26 20:19:31 +02:00
)}
{...rest}
>
{children}
</a>
)
}