Skip to content

Commit

Permalink
Add WarningBanner story
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Apr 5, 2023
1 parent 487edea commit 602b280
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions assets/js/components/Banners/WarningBanner.stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';

import WarningBanner from './WarningBanner';

export default {
title: 'WarningBanner',
component: WarningBanner,
};

const warningText = 'DANGER DANGER!';

export function PopulatedWarningBanner() {
return <WarningBanner>{warningText}</WarningBanner>;
}

export function EmptyWarningBanner() {
return <WarningBanner />;
}

0 comments on commit 602b280

Please sign in to comment.