Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snack-uikit/button-private

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/button-private

  • 0.0.1-preview-a2f98ef7.0
  • latest
  • preview
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
191
Maintainers
0
Weekly downloads
 
Created
Source

Button Private

Installation

npm i @snack-uikit/button-private

Changelog

ButtonPrivate

Props

nametypedefault valuedescription
labelClassName*string-
iconClassName*string-
hrefstring-Ссылка
targetHTMLAttributeAnchorTarget_blankHTML-аттрибут target
classNamestring-CSS-класс
disabledboolean-Флаг неактивности компонента
iconReactElement-Иконка
iconPositionenum IconPosition: "before", "after"afterПозиция иконки
labelstring-Текст кнопки
loadingboolean-Флаг состояния загрузки
onClickMouseEventHandler<HTMLElement>-Колбек обработки клика
onKeyDownKeyboardEventHandler<HTMLElement>-Колбек обработки нажатия клавиши
onFocusFocusEventHandler<HTMLButtonElement | HTMLAnchorElement>-Колбек обработки фокуса
onBlurFocusEventHandler<HTMLButtonElement | HTMLAnchorElement>-Колбек обработки блюра
sizeenum Size: "xs", "s", "m", "l"-Размер
appearanceenum Appearance: "primary", "neutral", "destructive"primaryВнешний вид кнопки
type"submit" | "reset" | "button"buttonHTML-аттрибут type
tabIndexnumber-HTML-аттрибут tab-index
fullWidthboolean-Сделать кнопку во всю ширину
counterCounterInButtonProps-Пропсы каунтера в кнопке
refLegacyRef<HTMLButtonElement | HTMLAnchorElement>-Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}
keyKey-

extractCounterButtonProps

Props

nametypedefault valuedescription
counterCounterInButtonProps-Пропсы каунтера в кнопке

extractCommonButtonProps

Props

nametypedefault valuedescription
hrefstring-Ссылка
targetHTMLAttributeAnchorTarget-HTML-аттрибут target
classNamestring-CSS-класс
disabledboolean-Флаг неактивности компонента
iconReactElement-Иконка
iconPositionenum IconPosition: "before", "after"-Позиция иконки
labelstring-Текст кнопки
loadingboolean-Флаг состояния загрузки
onClickMouseEventHandler<HTMLElement>-Колбек обработки клика
onKeyDownKeyboardEventHandler<HTMLElement>-Колбек обработки нажатия клавиши
onFocusFocusEventHandler<HTMLButtonElement | HTMLAnchorElement>-Колбек обработки фокуса
onBlurFocusEventHandler<HTMLButtonElement | HTMLAnchorElement>-Колбек обработки блюра
sizeenum Size: "xs", "s", "m", "l"-Размер
appearanceenum Appearance: "primary", "neutral", "destructive"-Внешний вид кнопки
type"submit" | "reset" | "button"-HTML-аттрибут type
tabIndexnumber-HTML-аттрибут tab-index
fullWidthboolean-Сделать кнопку во всю ширину

FAQs

Package last updated on 16 Jan 2025

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