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() {
|
||||
return (
|
||||
<>
|
||||
<Typography htmlTag="p" fontWeightVariant="bold">Hello World!</Typography>
|
||||
<Typography fontWeightVariant="bold">Hello World!</Typography>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@ -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> = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user