diff --git a/pkgs/webview-ui/app/src/components/Typography/index.tsx b/pkgs/webview-ui/app/src/components/Typography/index.tsx index fe138cf9f..dc5410d58 100644 --- a/pkgs/webview-ui/app/src/components/Typography/index.tsx +++ b/pkgs/webview-ui/app/src/components/Typography/index.tsx @@ -3,7 +3,7 @@ import { Dynamic } from "solid-js/web"; import cx from "classnames"; import "./css/typography.css"; -type Hierarchy = "body" | "title" | "headline" | "label"; +export type Hierarchy = "body" | "title" | "headline" | "label"; type Color = "primary" | "secondary" | "tertiary"; type Weight = "normal" | "medium" | "bold"; type Tag = "span" | "p" | "h1" | "h2" | "h3" | "h4"; @@ -75,7 +75,7 @@ const weightMap: Record = { bold: cx("fnt-weight-bold"), }; -interface TypographyProps { +interface _TypographyProps { hierarchy: H; size: AllowedSizes; children: JSX.Element; @@ -86,7 +86,8 @@ interface TypographyProps { class?: string; classList?: Record; } -export const Typography = (props: TypographyProps) => { + +export const Typography = (props: _TypographyProps) => { return ( (props: TypographyProps) => { ); }; + +export type TypographyProps = _TypographyProps;