Skip to main content

ButtonProps

@lowcode/ui-kit


Interface: ButtonProps

Defined in: components/primitives/Button.tsx:14

Extends

  • ButtonHTMLAttributes<HTMLButtonElement>

Properties

iconLeft?

optional iconLeft: ReactNode

Defined in: components/primitives/Button.tsx:30

Иконка слева от текста кнопки.


iconRight?

optional iconRight: ReactNode

Defined in: components/primitives/Button.tsx:35

Иконка справа от текста кнопки.


loading?

optional loading: boolean

Defined in: components/primitives/Button.tsx:41

Показывать ли состояние загрузки. При true контент кнопки визуально приглушается.


size?

optional size: ButtonSize

Defined in: components/primitives/Button.tsx:25

Размер кнопки. Определяет отступы и размер шрифта.


variant?

optional variant: ButtonVariant

Defined in: components/primitives/Button.tsx:19

Вариант оформления кнопки. Используется для задания цвета фона и границ.