
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@devseed-ui/button
Advanced tools
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>
Prop | Type | Description | Default |
---|---|---|---|
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' |
children | node | The content that will appear inside of the <Button /> component. | null |
onClick | function | The event handler function for the 'onclick' event. Receives the associated event object as the first argument. | |
className | string | Adds a className to the class attribute. | '' |
value | string | Sets the HTML value attribute. | |
disabled | boolean | Disabled the button | false |
as | HTML Tag or React Element | 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. | button |
href | string | 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. |
Any other properties will be spread on the input element.
FAQs
devseed UI Kit Button
We found that @devseed-ui/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.