Skip to content

Commit

Permalink
Rename tag to as
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Mysten committed Sep 13, 2022
1 parent 30cf45e commit 7eb6b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/client/src/ui/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export interface HeadingProps extends VariantProps<typeof headingStyles> {
* The HTML element that will be rendered.
* By default, we render a "div" in order to separate presentational styles from semantic markup.
*/
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
children: ReactNode;
}

export function Heading({
tag: Tag = 'div',
as: Tag = 'div',
children,
...styleProps
}: HeadingProps) {
Expand Down

0 comments on commit 7eb6b15

Please sign in to comment.