@emanon/ema-button
v0.3.2
Published
## Overall
Downloads
70
Keywords
Readme
ema-button
Overall
<ema-button>
is ema version of <button>
component.
Properties
| Property | Attribute | Type | Default | Description |
|------------|------------|-----------------------------------|-----------|-----------------------------------|
| color
| color
| "primary" \| "dark" \| "danger"
| "primary" | Button's color. |
| disabled
| disabled
| boolean
| false | Disabled if true value is passed. |
| label
| label
| string
| "" | Used as a button label. |
| size
| size
| "large" \| "medium" \| "small"
| "large" | Button size. |
| type
| type
| "normal" \| "ghost"
| "normal" | Button's design type. |
Events
| Event | Type |
|---------|--------------|
| click
| MouseEvent
|
CSS Custom Properties
| Property | Default | Description |
|-----------------------------------|-------------------------------------------|------------------------------------------|
| --ema-c-button-bgColor
| "liner-gradient(90deg, #80a6ea, #5289ea)" | Background color. |
| --ema-c-button-bgColor-hover
| "liner-gradient(90deg, #526280, #5289ea)" | Background color when you mouse over it. |
| --ema-c-button-labelColor
| "#5289ea" | Label color. |
| --ema-c-button-labelColor-hover
| "#fff" | Label color when you mouse over it. |