> ## 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

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

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

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

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

<LwTemplate />

## Default

Standard button

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button01.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=ee0609098bf70f237c1195718e1c9cbf" alt="Example" width="835" height="155" data-path="assets/images/app-studio/as-examples/gallery/button01.png" />

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

## Secondary

Button can be primary and secondary

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button02.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=c49372f212636b193f3b122698d31ac3" alt="Example" width="835" height="155" data-path="assets/images/app-studio/as-examples/gallery/button02.png" />

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

## Icon

Can be only icon

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button03.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=4ea82804120c057f9725331f8b01cc4a" alt="Example" width="835" height="155" data-path="assets/images/app-studio/as-examples/gallery/button03.png" />

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

## Disabled

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button05.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=02e608711544c91522b348d55af87c8a" alt="Example" width="835" height="160" data-path="assets/images/app-studio/as-examples/gallery/button05.png" />

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

## Size

Button are in different sizes

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button06.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=0d947d5a4211a45fa4aab99e3a0e4a73" alt="Example" width="835" height="191" data-path="assets/images/app-studio/as-examples/gallery/button06.png" />

```html 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

<img src="https://mintcdn.com/lucidworks/svjqq6CDiXcpPrjs/assets/images/app-studio/as-examples/gallery/button07.png?fit=max&auto=format&n=svjqq6CDiXcpPrjs&q=85&s=236fd9fb82669cb1833d02a6f675a268" alt="Example" width="835" height="155" data-path="assets/images/app-studio/as-examples/gallery/button07.png" />

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