Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@pikas-ui/button
Advanced tools
This package contains a button components.
You need to install the @pikas-ui/styles package to use this package.
With npm:
npm install @pikas-ui/button
With yarn:
yarn add @pikas-ui/button
With pnpm:
pnpm add @pikas-ui/button
import { Button } from `@pikas-ui/button`;
const Example: React.FC = () => (
<Button>Click me</Button>
)
Prop | Description | Type | Default |
---|---|---|---|
children | The content of the button. | React.ReactNode | - |
type | The type of the button. | "button", "submit", "reset", "link" | "button" |
fullWidth | If the button should be full width. | boolean | false |
id | The id of the button. | string | - |
name | The name of the button. | string | - |
color | The color of the button. | ColorsType | "PRIMARY" |
style | The style of the button. | CSS | - |
padding | The padding of the button. | "sm", "md", "lg" | "md" |
form | The form of the button. | string | - |
loading | If the button is loading. | boolean | false |
disabled | If the button is disabled. | boolean | false |
borderRadius | The border radius of the button. | BorderRadiusType | "md" |
fontSize | The font size of the button. | FontsSizesType | "EM-MEDIUM" |
textTransform | The text transform of the button. | "capitalize", "uppercase", "default", "none" | "default" |
fontWeight | The font weight of the button. | FontsWeightsType | "NORMAL" |
effect | The effect of the button when hovered or clicked. | "globalScale", "boxScale", "opacity" | "opacity" |
onClick | The function to call on click. | function | - |
gap | The gap of the button. | "sm", "md", "lg" | "md" |
href | The href of the button. | string | - |
LeftIcon | The left icon of the button. | React.FC<IconProps> | - |
RightIcon | The right icon of the button. | React.FC<IconProps> | - |
outlined | If the button is outlined. | boolean | false |
borderWidth | The border width of the button. | number | 2 |
import { ButtonIcon } from `@pikas-ui/button`;
const IconExample: React.FC<IconProps> = (props) => {
return <IconByName {...props} name="bx:baguette" />
}
const Example: React.FC = () => (
<ButtonIcon icon={IconExample} />
)
Prop | Description | Type | Default |
---|---|---|---|
type | The type of the button. | "button", "submit", "reset" | "button" |
id | The id of the button. | string | - |
name | The name of the button. | string | - |
color | The color of the button. | ColorsType | "PRIMARY" |
style | The style of the button. | CSS | - |
padding | The padding of the button. | "sm", "md", "lg" | "md" |
form | The form of the button. | string | - |
loading | If the button is loading. | boolean | false |
disabled | If the button is disabled. | boolean | false |
borderRadius | The border radius of the button. | BorderRadiusType | "md" |
effect | The effect of the button when hovered or clicked. | "globalScale", "boxScale", "opacity" | "opacity" |
onClick | The function to call on click. | function | - |
href | The href of the button. | string | - |
outlined | If the button is outlined. | boolean | false |
borderWidth | The border width of the button. | number | 2 |
size | The size of the button. | SizesType | "md" |
You can find the change log here.
FAQs
A UI library that offers a button components for React.
The npm package @pikas-ui/button receives a total of 50 weekly downloads. As such, @pikas-ui/button popularity was classified as not popular.
We found that @pikas-ui/button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.