Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@acodez/button
Advanced tools
React button component with plenty of customization.
npm install @acodez/button
Property | Type | Required | Default value | Description |
---|---|---|---|---|
btnSize | string | no | md | size of the button, choose from xs , sm ,md , lg |
btnColor | string | no | primary | color scheme of the button, choose from primary , secondary , danger , warning , success , info , dark , light |
btnType | string | no | textWithIcon | textWithIcon , icon , spinner , or text |
btnStyle | string | no | solid | button style, solid , outline , or transparent |
btnBorder | string | no | round | border radius, round or square |
btnWidth | string | no | auto | button width, auto or full |
btnIconPos | string | no | left | button icon position, left or right |
import Button from "@acodez/button";
<Button
btnColor="primary" // 'info', 'success', 'danger', 'warning', 'light', 'dark'
btnSize="sm" // 'xs', 'md', 'lg'
btnBorder="round" // 'square'
btnStyle="solid" // 'outline', 'transparent'
btnWidth="auto" // 'full'
btnIconPos="left" // 'right'
btnType="textWithIcon" // 'text', 'icon', 'spinner'
>
Button
</Button>
btnSize
Use btnSize property to adjust size/width of the button.
Options- 'xs', 'sm', 'md', 'lg'.
Default value - 'md'
Example:
<Button btnSize="md">Button</Button>
btnColor
Use btnColor property to adjust color scheme of the button.
Options- 'primary', 'secondary', 'warning', 'danger', 'info', 'light', 'dark'.
Default value - 'primary'
Example:
<Button btnColor="primary">Button</Button>
btnType
Use btnType property when you want to use button as icon only or for a spinner.
Options- 'textWithIcon', 'text', 'icon', 'spinner'.
Default value - 'textWithIcon'
Example:
<Button btnType="spinner">
<i className="ion-load-a"></i> // your spinner icon or image.
</Button>
btnStyle
Use btnStyle to change the overall style/appearance of the button.
Options- 'solid', 'outline', 'transparent'.
Default value - 'solid'
Example:
<Button btnStyle="outline">Button</Button>
btnBorder
Use btnBorder to change the border radius of the button.
Options- 'square', 'round'.
Default value - 'round'
Example:
<Button btnBorder="square">Button</Button>
btnWidth
Use btnWidth to change the button to auto width or full width.
Options- 'auto', 'full'.
Default value - 'auto'
Example:
<Button btnWidth="full">Button</Button>
btnIconPos
Use btnIconPos to change the icon position to left or right side of of the text.
Options- 'left', 'right'.
Default value - 'left'
Example:
<Button btnIconPos="right">
<i className="ion-ios-arrow-thin-right"></i>
Login Now
</Button>
link
Change button to a link (href).
Example:
<Button link="/innerPage">
Click to view!
</Button>
FAQs
react button component with custom styles
We found that @acodez/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.