Socket
Socket
Sign inDemoInstall

@che-ins/button

Package Overview
Dependencies
41
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @che-ins/button

<>


Version published
Maintainers
1
Created

Readme

Source

Button Component

Компоненты

  • BaseButton = Компонент кнопки без стилей, обязательно принимает объект classes с описанными компонентами. Используется для создания новых компонентов кнопки в других компонентах. Не для приложений.

  • Button = Кнопка, в зависимости от пропсов может становиться ссылкой или чем то другим.

  • ButtonGroup = Обёртка над группой кнопок, является компонентом ввода, обязательно принимает onChange + value, в children обязательна передача кнопок с аттрибутами value

  • IconButton = Кнопка с видом иконки

Jss theme namespaces:

  • BUTTON_COMPONENT_NAMESPACE
  • ICON_BUTTON_COMPONENT_NAMESPACE
  • BUTTON_GROUP_COMPONENT_NAMESPACE

При передаче href становится тегом <a>{children}</a>;

Возможна передача кастомного компонента через props

<Button component={CustomComponent}>text</Button>

Если не надо передавать appearance в кастомный компонент, следует передать passAppearancesToComponent={false};

FAQs

Last updated on 05 Oct 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc