Skip to main content

Interface: StandardButtonProperties

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

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

Component content (text, elements, or other components)

Inherited fromโ€‹

CoreComponentProperties.children


className?โ€‹

readonly optional className: string

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

Additional CSS classes for styling customization

Inherited fromโ€‹

CoreComponentProperties.className


disabled?โ€‹

readonly optional disabled: boolean

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

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

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

ARIA label for screen readers

Inherited fromโ€‹

AccessibilityProperties.aria-label


aria-labelledby?โ€‹

readonly optional aria-labelledby: string

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

ARIA labelledby reference for complex labeling

Inherited fromโ€‹

AccessibilityProperties.aria-labelledby


aria-level?โ€‹

readonly optional aria-level: number

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

ARIA heading level for elements using role="heading"

Inherited fromโ€‹

AccessibilityProperties.aria-level


role?โ€‹

readonly optional role: string

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

Role attribute for semantic meaning

Inherited fromโ€‹

AccessibilityProperties.role


tabIndex?โ€‹

readonly optional tabIndex: number

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

Tab index for keyboard navigation

Inherited fromโ€‹

AccessibilityProperties.tabIndex


fullWidth?โ€‹

readonly optional fullWidth: boolean

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

Whether component should take full width of its container

Inherited fromโ€‹

StylingProperties.fullWidth


size?โ€‹

readonly optional size: ComponentSize

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

Size variant for the component

Inherited fromโ€‹

StylingProperties.size


style?โ€‹

readonly optional style: CSSProperties

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

Inline styles to apply (use sparingly)

Inherited fromโ€‹

StylingProperties.style


variant?โ€‹

readonly optional variant: ComponentVariant

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

Visual variant for component theming

Inherited fromโ€‹

StylingProperties.variant


active?โ€‹

readonly optional active: boolean

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

Whether the component is in an active state

Inherited fromโ€‹

StateProperties.active


loading?โ€‹

readonly optional loading: boolean

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

Whether the component is in a loading state

Inherited fromโ€‹

StateProperties.loading


selected?โ€‹

readonly optional selected: boolean

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

Whether the component is selected

Inherited fromโ€‹

StateProperties.selected


icon?โ€‹

readonly optional icon: ReactNode

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

Icon element to display

Inherited fromโ€‹

IconProperties.icon


iconColor?โ€‹

readonly optional iconColor: string

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

Color theme for the icon

Inherited fromโ€‹

IconProperties.iconColor


iconOnly?โ€‹

readonly optional iconOnly: boolean

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

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

Position of the icon relative to content

Inherited fromโ€‹

IconProperties.iconPosition


onClick?โ€‹

readonly optional onClick: ClickHandler

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

Click handler for button interactions


title?โ€‹

readonly optional title: string

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

Tooltip text for hover states


type?โ€‹

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

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

HTML button type