You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@devseed-ui/button

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devseed-ui/button

devseed UI Kit Button

2.4.2
Source
npmnpm
Version published
Weekly downloads
79
-70.41%
Maintainers
1
Weekly downloads
 
Created
Source

Button

Example

import { Button } from '@devseed-ui/button';
    <Button
        theme={theme.main}
        variation='base-raised-semidark'
        size='medium'
        className='button-class'
        title='sample button'
        onClick={(event) => {/* Something to handle the click event */}}
    >
    Click Me
    </Button>

Output HTML

  <button class="sc-bdVaJa rCuob button-class" title="sample button" type="button">
      <span>
          Click Me
      </span>
  </button>

Properties

PropTypeDescriptionDefault
variant'default', 'primary', 'info', 'danger', 'dark'Sets the style variant of the button.'default'
size'xsmall', 'small', 'normal', 'large'Sets the size variant of the button.'normal'
childrennodeThe content that will appear inside of the <Button /> component.null
onClickfunctionThe event handler function for the 'onclick' event. Receives the associated event object as the first argument.
classNamestringAdds a className to the class attribute.''
valuestringSets the HTML value attribute.
disabledbooleanDisabled the buttonfalse
asHTML Tag or React ElementDetermines the root element. For example, Link or a tags can be supplied to replace button from being the DOM element that wraps the component.button
hrefstringIf a href is supplied it willl change the as value, such that the component renders inside of an a tag instead of inside of a button tag.

Any other properties will be spread on the input element.

FAQs

Package last updated on 30 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts