Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomickigrzegorz committed Oct 29, 2020
1 parent 03e5243 commit 8eec2c2
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,23 @@ const speedIcons = {
iconPlus: {
name: 'plus',
viebox: '0 0 20 20',
path: ['M0 3h20v2h-20v-2zM0 ...'],
path: [
{
fill: 'red',
d: 'M0 3h20v2h-20v-2zM0 ...'
}
],
color: '#1976d2'
},
iconTop: {
name: 'top',
viebox: '0 0 24 24',
path: ['M7.406 15.422L6 ...'],
path: [
{
fill: 'red',
d: 'M7.406 15.422L6 ...'
}
],
color: 'red'
},
iconsSmall: [
Expand All @@ -72,16 +82,18 @@ const speedIcons = {
url: 'https://url.com',
target: '_blank',
path: [
'M12 24l2 2-2 6 6-6-2-2 2-4-6 4zM32...',
'M12 24l2 2-2 6 6-6-2-2 2-4-6 4zM32...',
{ d: 'M12 24l2 2-2 6 6-6-2-2 2-4-6 4zM32...' },
{ d: 'M12 24l2 2-2 6 6-6-2-2 2-4-6 4zM32...' },
]
},
{
id: 2,
name: 'wind',
viebox: '0 0 32 32',
className: 'wind',
path: [ 'M26.938 12c-1.656 0-3 1.344-3 3 0...']
path: [
{ d : 'M26.938 12c-1.656 0-3 1.344-3 3 0...' }
]
}
]
}
Expand All @@ -95,7 +107,7 @@ viebox | string | Viewbox for svg
url | string | The Url specifies the link's destination, not required
target | string | _blank/_self/_parent/_top, not required
className | string | An additional class after which we can make events, not required
path | array | Path svg, can be an array of several paths
path | array object | Path svg, can be an array of several paths
color | string | Color will be used for the main button or top button

## Sample configuration
Expand Down

0 comments on commit 8eec2c2

Please sign in to comment.