> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Button

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/gallery/button

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/gallery/button.md

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1034.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Default

Standard button

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button01.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=ee0609098bf70f237c1195718e1c9cbf)

```xml wrap  theme={"dark"}
<button styling="button">Follow</button>
```

## Secondary

Button can be primary and secondary

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button02.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=c49372f212636b193f3b122698d31ac3)

```xml wrap  theme={"dark"}
<button styling="button">Okay</button>
<button styling="button button-secondary">Cancel</button>
```

## Icon

Can be only icon

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button03.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=4ea82804120c057f9725331f8b01cc4a)

```xml wrap  theme={"dark"}
<button styling="button">
  <widget:icon icon="heart"></widget:icon>
</button>
```

## Disabled

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button05.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=02e608711544c91522b348d55af87c8a)

```xml wrap  theme={"dark"}
<button styling="disabled button">
    <i class="icon icon-head"></i>
    Disabled
</button>
```

## Size

Button are in different sizes

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button06.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=0d947d5a4211a45fa4aab99e3a0e4a73)

```xml wrap  theme={"dark"}
<button styling="xs button">Extra Small</button>
<button styling="sm button">Small</button>
<button styling="md button">Medium</button>
<button styling="lg button">Large</button>
<button styling="xl button">Extra Large</button>
```

## Floated

Button can float to left or right

![Example](https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button07.png?fit=max\&auto=format\&n=svjqq6CDiXcpPrjs\&q=85\&s=236fd9fb82669cb1833d02a6f675a268)

```xml wrap  theme={"dark"}
<button styling="button pull-right">Right Floated</button>
<button styling="button pull-left">Left Floated</button>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.