added React.ComponentPropsWithoutRef<div>
This commit is contained in:
parent
c778def905
commit
1bac9f26ed
@ -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>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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> = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user