Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Maintainers
0
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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.