2021-04-29 04:16:26 -04:00
|
|
|
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"
|
2021-09-14 06:43:57 -04:00
|
|
|
rel="noopener noreferrer"
|
2021-04-29 04:16:26 -04:00
|
|
|
>
|
|
|
|
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',
|
2022-01-19 06:56:57 -05:00
|
|
|
fw: true,
|
2021-04-29 04:16:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const AccessibilityLabel = args => {
|
|
|
|
return <Icon {...args} />
|
|
|
|
}
|
|
|
|
AccessibilityLabel.args = {
|
|
|
|
type: 'check',
|
|
|
|
accessibilityLabel: 'Check',
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2022-03-28 06:23:21 -04:00
|
|
|
title: 'Shared / Components / Icon',
|
2021-04-29 04:16:26 -04:00
|
|
|
component: Icon,
|
|
|
|
}
|