@emanon/ema-button

0.3.2 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @emanon/ema-button

    Weekly Downloads

    3

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    57 kB

    Total Files

    7

    Last publish

    Collaborators

    • npm-cam
    • fkei
    • noritama
    • t4y3
    • ejithon
    • higashiyama
    • usui_yuki_cam