Skip to content

Commit

Permalink
feat(Flyout): Add as prop for Flyout title
Browse files Browse the repository at this point in the history
- Adds optional `as` prop for Flyout title heading-level
  • Loading branch information
sooinc authored Sep 4, 2024
1 parent 179381c commit 6bdc1d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gamut/src/Flyout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface FlyoutProps extends WithChildrenProp {
openFrom?: 'left' | 'right';

/**
* Contents for a top-left h2.
* Contents for a top-left h1.
*/
title: React.ReactNode;
bg?: Colors;
Expand Down Expand Up @@ -72,7 +72,7 @@ export const Flyout: React.FC<FlyoutProps> = ({
maxWidth="100%"
justifyContent="space-between"
>
<Text as="h2" fontSize={22}>
<Text as="h1" fontSize={22}>
{title}
</Text>
<IconButton
Expand Down

0 comments on commit 6bdc1d6

Please sign in to comment.