![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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" |
colorHex | The color of the button (hex). | string | - |
textColor | The color of the button. | ColorsType | - |
textColorHex | The color of the button (hex). | string | - |
styles | The style of the button. | object | - |
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" |
colorHex | The color of the button (hex). | string | - |
iconColor | The color of the button. | ColorsType | - |
iconColorHex | The color of the button (hex). | string | - |
styles | The style of the button. | object | - |
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 28 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.