| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import Icon from '../js/shared/components/icon'
- export const Type = args => {
- return (
- <>
- <Icon {...args} />
- <div>
- <a
- href="https://fontawesome.com/v4.7.0/icons/"
- target="_blank"
- rel="noopener noreferrer"
- >
- Font Awesome icons
- </a>
- </div>
- </>
- )
- }
- Type.args = {
- type: 'tasks',
- }
- export const Spinner = args => {
- return <Icon {...args} />
- }
- Spinner.args = {
- type: 'spinner',
- spin: true,
- }
- export const FixedWidth = args => {
- return <Icon {...args} />
- }
- FixedWidth.args = {
- type: 'tasks',
- fw: true,
- }
- export const AccessibilityLabel = args => {
- return <Icon {...args} />
- }
- AccessibilityLabel.args = {
- type: 'check',
- accessibilityLabel: 'Check',
- }
- export default {
- title: 'Shared / Components / Icon',
- component: Icon,
- }
|