Skip to content

Commit

Permalink
fix: Adds story using validation prop for Alert component (#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidtj authored Aug 9, 2023
1 parent cba1a0d commit c5176c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,12 @@ export const withCTA = (): React.ReactElement => (
{testText}
</Alert>
)

export const withValidation = (): React.ReactElement => (
<Alert type="info" heading="Code requirements" headingLevel="h4" validation>
<ul>
<li>Use at least one uppercase character</li>
<li>Use at least one number</li>
</ul>
</Alert>
)

0 comments on commit c5176c9

Please sign in to comment.