New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pikas-ui/button

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pikas-ui/button

This package contains a button components.

  • 1.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
increased by47.62%
Maintainers
1
Weekly downloads
 
Created
Source

@pikas-ui/button

This package contains a button components.

Getting Started

You need to install the @pikas-ui/styles package to use this package.

Installation

With npm:

npm install @pikas-ui/button

With yarn:

yarn add @pikas-ui/button

With pnpm:

pnpm add @pikas-ui/button

Usage

Button

import { Button } from `@pikas-ui/button`;

const Example: React.FC = () => (
  <Button>Click me</Button>
)
Props
PropDescriptionTypeDefault
childrenThe content of the button.React.ReactNode-
typeThe type of the button."button", "submit", "reset", "link""button"
fullWidthIf the button should be full width.booleanfalse
idThe id of the button.string-
nameThe name of the button.string-
colorThe color of the button.ColorsType"PRIMARY"
colorHexThe color of the button (hex).string-
textColorThe color of the button.ColorsType-
textColorHexThe color of the button (hex).string-
stylesThe style of the button.object-
paddingThe padding of the button."sm", "md", "lg""md"
formThe form of the button.string-
loadingIf the button is loading.booleanfalse
disabledIf the button is disabled.booleanfalse
borderRadiusThe border radius of the button.BorderRadiusType"md"
fontSizeThe font size of the button.FontsSizesType"EM-MEDIUM"
textTransformThe text transform of the button."capitalize", "uppercase", "default", "none""default"
fontWeightThe font weight of the button.FontsWeightsType"NORMAL"
effectThe effect of the button when hovered or clicked."globalScale", "boxScale", "opacity""opacity"
onClickThe function to call on click.function-
gapThe gap of the button."sm", "md", "lg""md"
hrefThe href of the button.string-
LeftIconThe left icon of the button.React.FC<IconProps>-
RightIconThe right icon of the button.React.FC<IconProps>-
outlinedIf the button is outlined.booleanfalse
borderWidthThe border width of the button.number2

ButtonIcon

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} />
)
Props
PropDescriptionTypeDefault
typeThe type of the button."button", "submit", "reset""button"
idThe id of the button.string-
nameThe name of the button.string-
colorThe color of the button.ColorsType"PRIMARY"
colorHexThe color of the button (hex).string-
iconColorThe color of the button.ColorsType-
iconColorHexThe color of the button (hex).string-
stylesThe style of the button.object-
paddingThe padding of the button."sm", "md", "lg""md"
formThe form of the button.string-
loadingIf the button is loading.booleanfalse
disabledIf the button is disabled.booleanfalse
borderRadiusThe border radius of the button.BorderRadiusType"md"
effectThe effect of the button when hovered or clicked."globalScale", "boxScale", "opacity""opacity"
onClickThe function to call on click.function-
hrefThe href of the button.string-
outlinedIf the button is outlined.booleanfalse
borderWidthThe border width of the button.number2
sizeThe size of the button.SizesType"md"

Change Log

You can find the change log here.

FAQs

Package last updated on 03 Jun 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc