Button

Buttons can be used to trigger an action or to navigate to a different page.

Buttons can be used to trigger an action or to navigate to a different page.

API Reference

Props

Examples

Basic

import { Block, Header, Button } from "@stagehq/ui";

export default function Extension() {
  return (
    <Block>
      /* ... */
      <Button text="Get yummy" link="https://cookieandkate.com/thai-spiced-rice-bowls-recipe/" />
    </Block>
  );
}

With icon

import { Block, Header, Button } from "@stagehq/ui";

export default function Extension() {
  return (
    <Block>
      /* ... */
      <Button text="Get yummy" link="https://cookieandkate.com/thai-spiced-rice-bowls-recipe/" icon="ArrowRightOnRectangleIcon" />
    </Block>
  );
}

Primary

import { Block, Header, Button } from "@stagehq/ui";

export default function Extension() {
  return (
    <Block>
      /* ... */
      <Button text="Get yummy" link="https://cookieandkate.com/thai-spiced-rice-bowls-recipe/" primary />
    </Block>
  );
}

Last updated