11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
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");
|
|
|
|
return <h1 className={classes}>{props.children}</h1>;
|
|
};
|
|
|
|
export default Headline;
|