flying dog button component in material design coming with several pre-defined themes, colors and can be customized.
export type cssColorString = string
export type iconString = string
Prop name | Kind | Reactive | Type | Default value | Description |
---|---|---|---|---|---|
disabled | let |
Yes | boolean |
false |
Set button to grey disabled state and deactivates onclick event. |
colorList | let |
Yes | -- | -- | -- |
circle | let |
Yes | boolean |
false |
Additional theme property overwrite current theme |
border | let |
Yes | string |
"" |
Additional theme property overwrite current theme |
shadowhover | let |
Yes | string |
"" |
Additional theme property overwrite current theme |
shadow | let |
Yes | string |
"" |
Additional theme property overwrite current theme |
opacityIn | let |
Yes | number |
0 |
Additional theme property overwrite current theme |
sizeIn | let |
Yes | number |
0 |
Additional theme property overwrite current theme |
width | let |
Yes | string |
'auto' |
The button width in CSS value (e.g. 100px) |
height | let |
Yes | number |
0 |
-- |
iconheight | let |
Yes | number |
0 |
Additional theme property overwrite current theme |
round | let |
Yes | string |
"" |
Additional theme property overwrite current theme |
bgcolor | let |
Yes | cssColorString |
"" |
Additional theme property overwrite current theme |
fontsize | let |
Yes | string |
"" |
Additional theme property overwrite current theme |
color | let |
Yes | cssColorString |
"" |
Additional theme property overwrite current theme |
speed | let |
Yes | number |
0 |
Additional theme property overwrite current theme |
rippleblur | let |
Yes | number |
0 |
Additional theme property overwrite current theme |
icon | let |
No | iconString |
"" |
The icon name if only icon has to be shown. |
theme | let |
No | "defaultTheme"|"materialLightBlue"|"materialLightBlueRounded"|"paper"|"paperCurl"|"squishy" |
"" |
The name of the theme |
type | let |
No | "primary"|"secondary"|"approve"|"decline" |
null |
Button type see description below |
getInfo | function |
No | () => any |
|
Get information about component |
version | const |
No | string |
-- | version of component |
getTheme | function |
No | () => any |
|
-- |
Slot name | Default | Props | Fallback |
---|---|---|---|
-- | Yes | -- | -- |
None.
The type consists of three parts seperated by -
The button type defines the color type, the size and optional style:
Sizes:
Additional type:
Blue buttons, sharp borders
Same theme but with
Paper like theme Transparent version not available.
Same paper theme with bottom right curl effect Transparent version not available.
Neumorphism Squishy buttons. Best looking for bigger buttons/icon-buttons and background color in same as button: #e4e8ec Transparent version is not available.
Set global config value to button name:
window["fds-ui-config"].buttonTheme
Custom themes can be stored in same fds-ui-config
as well in buttonThemes
It is required to set original theme which has to be modified in use
property.
So it is easy to just change a few parameters like back-colors.
See in example page and in src/themes.js about the theme structure.