
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@n3/react-button
Advanced tools
Компонент кнопки для приложений на базе @n3/kit.
import Button, {
buttonColors,
buttonSizes,
ButtonIcon,
} from '@n3/react-button';
| Название | Обязательность | Тип | Значение по умолчанию | Описание |
|---|---|---|---|---|
| color | enum - buttonColors.DEFAULT - buttonColors.PRIMARY - buttonColors.TERTIARY - buttonColors.DANGER | buttonColors.DEFAULT | Цвет кнопки | |
| size | enum - buttonSizes.DEFAULT - buttonSizes.SMALL | buttonSizes.DEFAULT | Размер кнопки | |
| component | elementType | 'button' | Компонент корневого элемента кнопки | |
| componentProps | object | {} | Дополнительный props компонента кнопки при использовании кастомного component | |
| loading | bool | false | Состояние загрузки | |
| disabled | bool | false | Кнопка выключена | |
| pressed | bool | false | Кнопка зажата | |
| setDisabledProp | bool | true | Передать ли disabled отрендеренному компоненту кнопки | |
| flatLeft | bool | false | Не отображать закругления слева | |
| flatRight | bool | false | Не отображать закругления справа | |
| onlyIcon | bool | false | Кнопка состоит только из иконки | |
| className | string | '' | Дополнительный класс корневого компонента кнопки | |
| onClick | func | Function.prototype | Обработчик нажатия на кнопку | |
| children | node | null |
Компонент для выравнивания иконок относительно границ и текста кнопки.
<Button>
Скачать
<ButtonIcon
isRight
>
<i className="fa fa-download" />
</ButtonIcon>
</Button>
| Название | Обязательность | Тип | Значение по умолчанию | Описание |
|---|---|---|---|---|
| isLeft | bool | false | Иконка находится слева от текста | |
| isRight | bool | false | Иконка находится справа от текста |
FAQs
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.