Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@vtex-components/button
Advanced tools
Elementary accessible button component that can be reused by all VTEX Styleguides. You can use reakit full features (except the 'as' prop) and theme-ui's sx. It renders a button element by default.
Elementary accessible button component that can be reused by all VTEX Styleguides. You can use reakit full features (except the 'as' prop) and theme-ui's sx. It renders a button element by default.
This is a styled base component, so any Styleguide can theme it. You may configure your
components.button
property of the theme object (check the theming section).
yarn add @vtex-components/button
or
npm install @vtex-components/button
import Button from '@vtex-components/button'
function UseCase() {
return <Button>VTEX Components Button</Button>
}
Modifier | Description |
---|---|
styles | base styles |
variant | button variants |
size | measures in general |
You can define the theme with:
const theme = {
components: {
button: {
styles: {
':focus': {
outline: 'none',
boxShadow: '0px 0px 1px 0px solid #cecece'
}
},
variant: {
primary: {
bg: 'primary',
color: 'white',
},
secondary: {
bg: 'secondary',
color: 'black',
},
},
size: {
small: {
paddingY: 1
paddingX: 2
},
regular: {
paddingY: 2
paddingX: 3
},
},
},
},
}
Then use the Button:
<Button variant="primary" size="small">
Small Primary Button
</Button>
FAQs
Elementary accessible button component that can be reused by all VTEX Styleguides. You can use reakit full features (except the 'as' prop) and theme-ui's sx. It renders a button element by default.
The npm package @vtex-components/button receives a total of 1 weekly downloads. As such, @vtex-components/button popularity was classified as not popular.
We found that @vtex-components/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.