mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-15 07:20:52 -05:00
9daa8f5d98
[web] rename all the JSX files to .jsx/.tsx GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
50 lines
839 B
JavaScript
50 lines
839 B
JavaScript
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,
|
|
}
|