Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@leafygreen-ui/button
Advanced tools
<Button
variant='primary'
className='create-item-button'
title='Create an item'
onClick={(event) => {/* Something to handle the click event */}}
>
Submit
</Button>
Output HTML
<button class="css-1rgbgdt create-item-button" title="Create an item" disabled="false">
Submit
</button>
Type: string
Default: 'default'
Sets the style variant of the button. Valid variants for buttons are 'default'
, 'primary'
, 'info'
, 'danger'
, and 'dark'
.
Type: string
Default: 'normal'
Sets the size variant of the button. Valid variants for buttons are 'xsmall'
, 'small'
, 'normal'
, and 'large'
.
Type: function
Default: () => {}
The event handler function for the 'onclick' event. Receives the associated event
object as the first argument.
Type: string
Default: ''
Adds a className to the class attribute.
Type: node
Default: null
The children of the rendered <button>
element.
Type: string
Default: null
Sets the HTML value
attribute.
Type: boolean
Default: false
Disables the button.
Type: HTML Tag
or React Element
Default: button
Determines the root element. For example, Link
or a
tags can be supplied to replace button
from being the DOM element that wraps the component.
Type: string
Default: null
If 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.
Note: In order to make this Component act as a submit button, the recommended approach is to pass submit
as the type
prop. Note it is also valid to pass input
to the as
prop, and the button's content's to the value
prop -- in this case, do not supply children to the component.
FAQs
leafyGreen UI Kit Button
We found that @leafygreen-ui/button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.