tailwind-ui-library/components/layout/Span.tsx
Benjamin Toby f73b56cdc4 Updates
2024-10-17 09:06:54 +01:00

20 lines
465 B
TypeScript

import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # Span element
* @className twui-span
*/
export default function Span({
...props
}: DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) {
return (
<span
{...props}
className={twMerge("text-base", "twui-span", props.className)}
>
{props.children}
</span>
);
}