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() {
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'
type Props = {
children: React.ReactNode;
interface Props extends React.ComponentPropsWithoutRef<"div"> {
htmlTag?: TypographyHtmlTagVariants | undefined;
fontWeightVariant?: FontWeightVariants;
className?: string | undefined;
};
const typographyFontWeightVariants: TypographyFontWeightVariantsMap<string> = {