Skip to main content

InterfaceButtonProps

Admin Docs


Interface: InterfaceButtonProps

Defined in: src/shared-components/Button/Button.types.ts:29

Props for the shared Button wrapper. Extends react-bootstrap Button props and adds loading, icon, and layout helpers.

Extends

  • Omit<BootstrapButtonProps, "size" | "variant">

Properties

fullWidth?

optional fullWidth: boolean

Defined in: src/shared-components/Button/Button.types.ts:38

Stretch to the parent width.


icon?

optional icon: ReactNode

Defined in: src/shared-components/Button/Button.types.ts:44

Optional leading/trailing icon.


iconPosition?

optional iconPosition: ButtonIconPosition

Defined in: src/shared-components/Button/Button.types.ts:46

Placement of the icon relative to the text.


isLoading?

optional isLoading: boolean

Defined in: src/shared-components/Button/Button.types.ts:40

Show the loading spinner and disable interactions.


loadingText?

optional loadingText: ReactNode

Defined in: src/shared-components/Button/Button.types.ts:42

Optional text to display while loading; falls back to children.


size?

optional size: ButtonSize

Defined in: src/shared-components/Button/Button.types.ts:36

Size token. md is the default; xl uses custom styling.


variant?

optional variant: ButtonVariant

Defined in: src/shared-components/Button/Button.types.ts:34

Visual variant (e.g., primary, outline-primary, danger).