15 lines
No EOL
335 B
TypeScript
15 lines
No EOL
335 B
TypeScript
import React from "react";
|
|
|
|
export interface Props {
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export class H1 extends React.Component<Props> {
|
|
render() {
|
|
return (
|
|
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">
|
|
{this.props.children}
|
|
</h1>
|
|
);
|
|
}
|
|
} |