Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
125
decreased by-35.57%
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 12 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc