-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add v3 va-featured-content component (#956)
* add v3 featured content * version bump * add uswds classes * PR feedback * update test
- Loading branch information
Showing
7 changed files
with
198 additions
and
15 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
packages/storybook/stories/va-featured-content-uswds.stories.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* eslint-disable react/prop-types */ | ||
import React from 'react'; | ||
import { getWebComponentDocs, propStructure, StoryDocs } from './wc-helpers'; | ||
|
||
const featuredContentDocs = getWebComponentDocs('va-featured-content'); | ||
|
||
export default { | ||
title: 'USWDS/Featured content USWDS', | ||
id: 'uswds/va-featured-content', | ||
parameters: { | ||
componentSubtitle: `va-featured-content web component`, | ||
docs: { | ||
page: () => <StoryDocs data={featuredContentDocs} />, | ||
}, | ||
}, | ||
}; | ||
const defaultArgs = { uswds: true }; | ||
|
||
const Template = args => { | ||
const { uswds } = args | ||
return ( | ||
<va-featured-content uswds={uswds}> | ||
<h3 slot="headline"> | ||
If I'm a Veteran, can I get VR&E benefits and services? | ||
</h3> | ||
<p> | ||
You may be eligible for VR&E benefits and services if you're a | ||
Veteran, and you meet all of the requirements listed below. | ||
</p> | ||
<p> | ||
<strong>All of these must be true. You:</strong> | ||
</p> | ||
<ul> | ||
<li> | ||
Didn't receive a dishonorable discharge, <strong>and</strong> | ||
</li> | ||
<li> | ||
Have a service-connected disability rating of at least 10% from VA, | ||
<strong> and</strong> | ||
</li> | ||
<li> | ||
<a href="#">Apply for VR&E services</a> | ||
</li> | ||
</ul> | ||
</va-featured-content> | ||
); | ||
} | ||
|
||
export const Default = Template.bind(null); | ||
Default.args = defaultArgs; | ||
Default.argTypes = propStructure(featuredContentDocs); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...-featured-content/va-featured-content.css → ...featured-content/va-featured-content.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters