/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/ui/src/button/index.ts
18 строк
600 B
Mikael Korpela
UI: add LinkButton (#78944)
02 июл 2026, 13:52
Не верифицирован
02 июл 2026, 13:52
7b5e419
Код
Авторство
О чём код?
import { Button as _Button } from './button'; import { ButtonIcon } from './icon'; ButtonIcon.displayName = 'Button.Icon'; /** * A versatile button component with multiple variants, tones, and sizes. * * See the [Usage Guidelines](https://wordpress.github.io/gutenberg/?path=/docs/design-system-components-button-usage-guidelines--docs) * for when to use `Button`, `IconButton`, `Link`, or `LinkButton`. */ export const Button = Object.assign( _Button, { /** * An icon component specifically designed to work well when rendered inside * a `Button` component. */ Icon: ButtonIcon, } );