13 lines
394 B
TypeScript
13 lines
394 B
TypeScript
import React from "react";
|
|
import classnames from "classnames";
|
|
import { TextProps } from "../Text";
|
|
import Styles from "../Text.module.css";
|
|
|
|
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
|
|
const classes = classnames(Styles["text--headline"], props?.className, props?.color);
|
|
|
|
return <h1 className={classes}>{props.children}</h1>;
|
|
};
|
|
|
|
export default Headline;
|