added React.ComponentPropsWithoutRef<div>

This commit is contained in:
Artem 2022-08-08 18:27:36 +03:00
parent c778def905
commit 1bac9f26ed
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import Typography from "components/typography/Typography";
function App() { function App() {
return ( return (
<> <>
<Typography htmlTag="p" fontWeightVariant="bold">Hello World!</Typography> <Typography fontWeightVariant="bold">Hello World!</Typography>
</> </>
); );
} }

View File

@ -7,11 +7,9 @@ import {
} from 'core/_variants' } from 'core/_variants'
type Props = { interface Props extends React.ComponentPropsWithoutRef<"div"> {
children: React.ReactNode;
htmlTag?: TypographyHtmlTagVariants | undefined; htmlTag?: TypographyHtmlTagVariants | undefined;
fontWeightVariant?: FontWeightVariants; fontWeightVariant?: FontWeightVariants;
className?: string | undefined;
}; };
const typographyFontWeightVariants: TypographyFontWeightVariantsMap<string> = { const typographyFontWeightVariants: TypographyFontWeightVariantsMap<string> = {