Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
Kelly edited this page Jul 3, 2018 · 1 revision

API

Property Description Type Default
className Custom button style string -
has_effect Whether to show on click effect/animation boolean -
id Sets the button id attribute string -
is_disabled Sets the button disabled attribute to disabled boolean -
onClick Callback function for when the button is clicked function() -
text Sets the button text string -

How to use

function onClick(e) {
    console.log('Hello there');
}

<Button
    id='button'
    has_effect={true}
    is_disabled={false}
    onClick={onClick}
    text={'Click me'}
/>
 
Clone this wiki locally