Skip to main content

InterfaceButtonProps

Admin Docs


Interface: InterfaceButtonProps

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

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:41

Stretch to the parent width.


icon?​

optional icon: ReactNode

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

Optional leading/trailing icon.


iconPosition?​

optional iconPosition: ButtonIconPosition

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

Placement of the icon relative to the text.


isLoading?​

optional isLoading: boolean

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

Show the loading spinner and disable interactions.


loadingText?​

optional loadingText: ReactNode

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

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


size?​

optional size: ButtonSize

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

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


variant?​

optional variant: ButtonVariant

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

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