/
sdds
/
plasma
Обзор
Документация
Войти
/
sdds
/
plasma
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
dev
packages/sdds-scan/src/components/Button/Button.tsx
14 строк
453 B
Krivonos Aleksandr
feat: add MakePolymorphic to Button
16 апр 2026, 14:02
16 апр 2026, 14:02
63556b8
Код
Авторство
О чём код?
import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components'; import { makePolymorphic } from '@salutejs/plasma-new-hope'; import { config } from './Button.config'; const mergedConfig = mergeConfig(buttonConfig, config); const ButtonComponent = component(mergedConfig); export type ButtonProps = typeof ButtonComponent; /** * Кнопка. */ export const Button = makePolymorphic(ButtonComponent, 'button');