diff --git a/README.md b/README.md index e121c8f..e18ba0c 100644 --- a/README.md +++ b/README.md @@ -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: [ @@ -72,8 +82,8 @@ 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...' }, ] }, { @@ -81,7 +91,9 @@ const speedIcons = { 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...' } + ] } ] } @@ -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 diff --git a/docs/index.html b/docs/index.html index ca813b4..ced3e56 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,15 +16,21 @@