cal.pub0.org/components/ui/Text/Headline/Headline.tsx

12 lines
377 B
TypeScript
Raw Normal View History

import React from "react";
import classnames from "classnames";
import { TextProps } from "../Text";
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
const classes = classnames("text-xl font-bold text-gray-900 dark:text-white", props?.className);
return <p className={classes}>{props?.text || props.children}</p>;
};
export default Headline;