ButtonComponent

Enhanced Button component with multiple variants and icon support

Installation

import { ButtonComponent } from 'uxp/components';

Signature

const ButtonComponent: React.FunctionComponent<ButtonComponentProps>

Examples

Basic button

<ButtonComponent title="Click me" onClick={() => console.log('clicked')} />


```tsx
Button with icons

```tsx
Icon only button

```tsx
Async button with loading

<ButtonComponent title="Submit" loadingTitle="Submitting..." onClick={async () => await submitForm()} />

Last updated