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