Files
fredy/ui/src/components/headline/Headline.jsx
Christian Kellner d7c9c4bf76 Modernizing ui (#73)
Modernizing ui
2023-03-20 08:52:13 +01:00

12 lines
272 B
JavaScript

import React from 'react';
import { Typography } from '@douyinfe/semi-ui';
export default function Headline({ text, size = 3 } = {}) {
const { Title } = Typography;
return (
<Title heading={size} style={{ marginBottom: '1rem' }}>
{text}
</Title>
);
}