Skip to main content

Interface: StandardButtonProperties

Defined in: shared/types/componentProps.ts:237

Button-specific properties combining common patterns.

Remarksโ€‹

This interface combines the most common props needed for button components, serving as a standard template.

Extendsโ€‹

Propertiesโ€‹

children?โ€‹

readonly optional children: ReactNode

Defined in: shared/types/componentProps.ts:33

Component content (text, elements, or other components)

Inherited fromโ€‹

CoreComponentProperties.children


className?โ€‹

readonly optional className: string

Defined in: shared/types/componentProps.ts:35

Additional CSS classes for styling customization

Inherited fromโ€‹

CoreComponentProperties.className


disabled?โ€‹

readonly optional disabled: boolean

Defined in: shared/types/componentProps.ts:37

Whether the component is disabled and non-interactive

Inherited fromโ€‹

CoreComponentProperties.disabled


aria-describedby?โ€‹

readonly optional aria-describedby: string

Defined in: shared/types/componentProps.ts:49

ARIA described-by reference for additional descriptions

Inherited fromโ€‹

AccessibilityProperties.aria-describedby


aria-label?โ€‹

readonly optional aria-label: string

Defined in: shared/types/componentProps.ts:51

ARIA label for screen readers

Inherited fromโ€‹

AccessibilityProperties.aria-label


aria-labelledby?โ€‹

readonly optional aria-labelledby: string

Defined in: shared/types/componentProps.ts:53

ARIA labelledby reference for complex labeling

Inherited fromโ€‹

AccessibilityProperties.aria-labelledby


role?โ€‹

readonly optional role: string

Defined in: shared/types/componentProps.ts:55

Role attribute for semantic meaning

Inherited fromโ€‹

AccessibilityProperties.role


tabIndex?โ€‹

readonly optional tabIndex: number

Defined in: shared/types/componentProps.ts:57

Tab index for keyboard navigation

Inherited fromโ€‹

AccessibilityProperties.tabIndex


fullWidth?โ€‹

readonly optional fullWidth: boolean

Defined in: shared/types/componentProps.ts:85

Whether component should take full width of its container

Inherited fromโ€‹

StylingProperties.fullWidth


size?โ€‹

readonly optional size: ComponentSize

Defined in: shared/types/componentProps.ts:87

Size variant for the component

Inherited fromโ€‹

StylingProperties.size


style?โ€‹

readonly optional style: CSSProperties

Defined in: shared/types/componentProps.ts:89

Inline styles to apply (use sparingly)

Inherited fromโ€‹

StylingProperties.style


variant?โ€‹

readonly optional variant: ComponentVariant

Defined in: shared/types/componentProps.ts:91

Visual variant for component theming

Inherited fromโ€‹

StylingProperties.variant


active?โ€‹

readonly optional active: boolean

Defined in: shared/types/componentProps.ts:103

Whether the component is in an active state

Inherited fromโ€‹

StateProperties.active


loading?โ€‹

readonly optional loading: boolean

Defined in: shared/types/componentProps.ts:105

Whether the component is in a loading state

Inherited fromโ€‹

StateProperties.loading


selected?โ€‹

readonly optional selected: boolean

Defined in: shared/types/componentProps.ts:107

Whether the component is selected

Inherited fromโ€‹

StateProperties.selected


icon?โ€‹

readonly optional icon: ReactNode

Defined in: shared/types/componentProps.ts:141

Icon element to display

Inherited fromโ€‹

IconProperties.icon


iconColor?โ€‹

readonly optional iconColor: string

Defined in: shared/types/componentProps.ts:143

Color theme for the icon

Inherited fromโ€‹

IconProperties.iconColor


iconOnly?โ€‹

readonly optional iconOnly: boolean

Defined in: shared/types/componentProps.ts:145

Whether to show only the icon (hide text content)

Inherited fromโ€‹

IconProperties.iconOnly


iconPosition?โ€‹

readonly optional iconPosition: "left" | "right"

Defined in: shared/types/componentProps.ts:147

Position of the icon relative to content

Inherited fromโ€‹

IconProperties.iconPosition


onClick?โ€‹

readonly optional onClick: ClickHandler

Defined in: shared/types/componentProps.ts:244

Click handler for button interactions


title?โ€‹

readonly optional title: string

Defined in: shared/types/componentProps.ts:246

Tooltip text for hover states


type?โ€‹

readonly optional type: "button" | "reset" | "submit"

Defined in: shared/types/componentProps.ts:248

HTML button type