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

# Empty States

> Reference implementations for empty state lockups.

Empty states tell the user there is nothing to show yet — a first-run setup, a cleared queue, a search with no results, or a system state outside their control. Each example below is a starting point: copy it, then adapt the copy, icon or illustration, and actions to your use case. For guidance on when each type applies, see the Empty states pattern.

## Resources

> [card] [Empty states pattern](https://anvil.servicetitan.com/docs/patterns/empty-states/web.md)
>
> When to use empty states and related guidance.

> [card] [Empty states](https://www.figma.com/design/9OB8FwOZZc079PBR6XY8vP/Anvil-Blocks?node-id=2-2053)
>
> Figma reference implementations for empty state lockups.

## Start Setup

Guide the user to configure a feature that has not been set up yet, with an illustration and a primary action.

block-empty-state-start-setup

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-start-setup?file=src/App.tsx)

```tsx lines theme={null}
import {
  Flex,
  Text,
  Button,
  usePrefersColorScheme,
} from "@servicetitan/anvil2";
import FirstUseLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-first-use-light.svg";
import FirstUseDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-first-use-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration = mode === "dark" ? FirstUseDark : FirstUseLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Flex direction="column" alignItems="center" gap={2}>
          <Text variant="headline" el="h2" noMargin>
            Looks like Reports haven’t been set up yet
          </Text>
          <Text subdued>
            Set it up today to start improving your business through our
            integrated system.
          </Text>
        </Flex>
        <Button appearance="primary" onClick={() => console.log("Start Setup")}>
          Start Setup
        </Button>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Headlines

Introduce a feature area with a bold headline, supporting text, and a secondary action.

block-empty-state-headlines

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-headlines?file=src/App.tsx)

```tsx lines theme={null}
import {
  Flex,
  Text,
  Button,
  usePrefersColorScheme,
} from "@servicetitan/anvil2";
import NoSearchResultsLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-no-search-results-light.svg";
import NoSearchResultsDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-no-search-results-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration =
    mode === "dark" ? NoSearchResultsDark : NoSearchResultsLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Flex direction="column" alignItems="center" gap={2}>
          <Text variant="headline" el="h2" noMargin>
            Bookmark Your Reports
          </Text>
          <Text subdued>
            Bookmarked reports will appear here for quick access.
          </Text>
        </Flex>
        <Button
          appearance="secondary"
          onClick={() => console.log("Learn More")}
        >
          Learn More
        </Button>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Neutral Feedback

State a neutral, informational empty result. Use when there is nothing to show yet and no action is needed.

block-empty-state-neutral-feedback

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-neutral-feedback?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text } from "@servicetitan/anvil2";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Text subdued style={{ textAlign: "center" }}>
          You have no billing history. When an invoice is complete, it will
          appear here.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Neutral Feedback (alt)

The neutral message with a subdued icon for a little more presence.

block-empty-state-neutral-feedback-alt

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-neutral-feedback-alt?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Icon } from "@servicetitan/anvil2";
import MoneyOff from "@servicetitan/anvil2/assets/icons/material/round/money_off.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Icon
          svg={MoneyOff}
          size="large"
          color="var(--a2-foreground-color-subdued)"
          aria-hidden
        />
        <Text subdued style={{ textAlign: "center" }}>
          You have no billing history. When an invoice is complete, it will
          appear here.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Negative Feedback

Signal a failed or empty search and offer a corrective action inline.

block-empty-state-negative-feedback

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-negative-feedback?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Icon, Link } from "@servicetitan/anvil2";
import Block from "@servicetitan/anvil2/assets/icons/material/round/block.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Icon
          svg={Block}
          size="large"
          color="var(--a2-color-red-600)"
          aria-hidden
        />
        <Text subdued style={{ textAlign: "center" }}>
          No results found. Try another search or{" "}
          <Link href="#">create a new report</Link>.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Positive Feedback (icon)

Confirm an up-to-date state with a success icon and a short message.

block-empty-state-positive-feedback-icon

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-positive-feedback-icon?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Icon } from "@servicetitan/anvil2";
import CheckCircle from "@servicetitan/anvil2/assets/icons/material/round/check_circle.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Icon
          svg={CheckCircle}
          size="large"
          color="var(--a2-color-blue-600)"
          aria-hidden
        />
        <Text subdued style={{ textAlign: "center" }}>
          Your report is up-to-date! Check back later for new updates.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Positive Feedback (illustration)

Confirm success with an illustration and an optional follow-up link.

block-empty-state-positive-feedback-illustration

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-positive-feedback-illustration?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Link, usePrefersColorScheme } from "@servicetitan/anvil2";
import SuccessLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-success-light.svg";
import SuccessDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-success-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration = mode === "dark" ? SuccessDark : SuccessLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Text subdued style={{ textAlign: "center" }}>
          Your report is up-to-date! Check back later for new updates. To see
          the history of changes, <Link href="#">view your sync log</Link>.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Out of User Control (icon)

Explain a system state the user cannot act on, with an icon and a short message.

block-empty-state-out-of-user-control-icon

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-out-of-user-control-icon?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Icon } from "@servicetitan/anvil2";
import Build from "@servicetitan/anvil2/assets/icons/material/round/build.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Icon
          svg={Build}
          size="large"
          color="var(--a2-foreground-color-subdued)"
          aria-hidden
        />
        <Text subdued style={{ textAlign: "center" }}>
          This account is going through routine maintenance. Your connection
          should resume as normal in a couple hours.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Out of User Control (illustration)

Explain a longer system process with an illustration, headline, and detail.

block-empty-state-out-of-user-control-illustration

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-out-of-user-control-illustration?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, usePrefersColorScheme } from "@servicetitan/anvil2";
import UserClearedLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-user-cleared-light.svg";
import UserClearedDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-user-cleared-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration = mode === "dark" ? UserClearedDark : UserClearedLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Flex direction="column" alignItems="center" gap={2}>
          <Text variant="headline" el="h2" noMargin>
            Your Account is Being Migrated
          </Text>
          <Text subdued>
            We are working on setting up your account. Verifying the information
            can take up to 3 business days. You will receive an email when your
            account is ready.
          </Text>
        </Flex>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Empty Error (icon)

Report an error with a subdued icon and an inline recovery link.

block-empty-state-empty-error-icon

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-empty-error-icon?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, Icon, Link } from "@servicetitan/anvil2";
import Error from "@servicetitan/anvil2/assets/icons/material/round/error.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <Icon
          svg={Error}
          size="large"
          color="var(--a2-foreground-color-subdued)"
          aria-hidden
        />
        <Text subdued style={{ textAlign: "center" }}>
          The server didn’t recognize your request. We are currently
          investigating the problem. Go back or <Link href="#">try again</Link>.
        </Text>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Empty Error (illustration)

Report an error with an illustration, an inline recovery link, and a recovery action.

block-empty-state-empty-error-illustration

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-empty-error-illustration?file=src/App.tsx)

```tsx lines theme={null}
import {
  Flex,
  Text,
  Button,
  Link,
  usePrefersColorScheme,
} from "@servicetitan/anvil2";
import ErrorLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-error-light.svg";
import ErrorDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-error-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration = mode === "dark" ? ErrorDark : ErrorLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Flex direction="column" alignItems="center" gap={2}>
          <Text variant="headline" el="h2" noMargin>
            We Didn’t Catch That
          </Text>
          <Text subdued>
            The server didn’t recognize your request. We are currently
            investigating the problem. Go back or{" "}
            <Link href="#">try again</Link>.
          </Text>
        </Flex>
        <Button appearance="secondary" onClick={() => console.log("Go Back")}>
          Go Back
        </Button>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Starting Points

Offer a set of suggested next actions in interactive cards to help the user begin.

block-empty-state-starting-points

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-starting-points?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Grid, Divider, Button, Text, Icon } from "@servicetitan/anvil2";
import { InteractiveCard } from "@servicetitan/anvil2/beta";
import Build from "@servicetitan/anvil2/assets/icons/material/round/build.svg";
import CardMembership from "@servicetitan/anvil2/assets/icons/material/round/card_membership.svg";
import Pause from "@servicetitan/anvil2/assets/icons/material/round/pause.svg";
import Schedule from "@servicetitan/anvil2/assets/icons/material/round/schedule.svg";
import ArrowForward from "@servicetitan/anvil2/assets/icons/material/round/arrow_forward.svg";

function App() {
  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex direction="column" gap={5} style={{ maxWidth: 850, width: "100%" }}>
        <Flex
          direction="column"
          alignItems="center"
          gap={1}
          style={{ textAlign: "center", width: "100%" }}
        >
          <Text variant="headline" el="h2" size="medium">
            Welcome to Reports
          </Text>
          <Text subdued>
            You don’t have any reports. Here are some suggestions to get started
            with your first one.
          </Text>
        </Flex>

        <Divider spacing="0" />

        <Grid
          templateColumns="1fr"
          gap={4}
          md={{ templateColumns: "repeat(2, minmax(0, 1fr))" }}
        >
          <Grid.Item>
            <InteractiveCard
              wrapperProps={{
                "aria-label": "Unsold Estimates card",
                style: { height: "100%" },
              }}
              actionProps={{
                "aria-label": "Unsold Estimates",
                onClick: () => console.log("Unsold Estimates"),
              }}
              contentProps={{
                padding: "medium",
                gap: 4,
                style: { width: "100%" },
              }}
            >
              <Icon svg={Build} size="small" aria-hidden />
              <Flex direction="column" gap={1} style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Unsold Estimates
                </Text>
                <Text subdued size="small">
                  Find and target open estimates. Leave no opportunity behind by
                  creating custom parameters with your audience.
                </Text>
              </Flex>
            </InteractiveCard>
          </Grid.Item>

          <Grid.Item>
            <InteractiveCard
              wrapperProps={{
                "aria-label": "Expiring Memberships card",
                style: { height: "100%" },
              }}
              actionProps={{
                "aria-label": "Expiring Memberships",
                onClick: () => console.log("Expiring Memberships"),
              }}
              contentProps={{
                padding: "medium",
                gap: 4,
                style: { width: "100%" },
              }}
            >
              <Icon svg={CardMembership} size="small" aria-hidden />
              <Flex direction="column" gap={1} style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Expiring Memberships
                </Text>
                <Text subdued size="small">
                  Automatically reach out to customers with soon to expire
                  memberships. Allow customers to see what memberships will
                  expire and when. Prompt them to take action and renew.
                </Text>
              </Flex>
            </InteractiveCard>
          </Grid.Item>

          <Grid.Item>
            <InteractiveCard
              wrapperProps={{
                "aria-label": "Idle Account card",
                style: { height: "100%" },
              }}
              actionProps={{
                "aria-label": "Idle Account",
                onClick: () => console.log("Idle Account"),
              }}
              contentProps={{
                padding: "medium",
                gap: 4,
                style: { width: "100%" },
              }}
            >
              <Icon svg={Pause} size="small" aria-hidden />
              <Flex direction="column" gap={1} style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Idle Account
                </Text>
                <Text subdued size="small">
                  Follow up with existing customers who have no recent activity
                  in ServiceTitan. Customize the date parameter to find
                  customers who have not called or booked a job.
                </Text>
              </Flex>
            </InteractiveCard>
          </Grid.Item>

          <Grid.Item>
            <InteractiveCard
              wrapperProps={{
                "aria-label": "Aging Equipment card",
                style: { height: "100%" },
              }}
              actionProps={{
                "aria-label": "Aging Equipment",
                onClick: () => console.log("Aging Equipment"),
              }}
              contentProps={{
                padding: "medium",
                gap: 4,
                style: { width: "100%" },
              }}
            >
              <Icon svg={Schedule} size="small" aria-hidden />
              <Flex direction="column" gap={1} style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Aging Equipment
                </Text>
                <Text subdued size="small">
                  Target customers with specific equipment. Let them know you’re
                  aware of their home and encourage them to take the next step
                  in protecting their home.
                </Text>
              </Flex>
            </InteractiveCard>
          </Grid.Item>
        </Grid>

        <Flex justifyContent="end">
          <Button
            appearance="secondary"
            icon={{ after: ArrowForward }}
            onClick={() => console.log("Or start from an empty project")}
          >
            Or start from an empty project
          </Button>
        </Flex>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Best Match

Show a no-results state with recommended alternatives the user can act on.

block-empty-state-best-match

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-best-match?file=src/App.tsx)

```tsx lines theme={null}
import {
  Avatar,
  Button,
  Divider,
  Flex,
  Text,
  usePrefersColorScheme,
} from "@servicetitan/anvil2";
import Add from "@servicetitan/anvil2/assets/icons/material/round/add.svg";
import NoSearchResultsLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-no-search-results-light.svg";
import NoSearchResultsDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-no-search-results-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration =
    mode === "dark" ? NoSearchResultsDark : NoSearchResultsLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex direction="column" gap={5} style={{ maxWidth: 600, width: "100%" }}>
        <Flex
          direction="column"
          alignItems="center"
          gap={1}
          style={{ textAlign: "center", width: "100%" }}
        >
          <div
            style={{
              flexShrink: 0,
              width: 300,
              maxWidth: "100%",
              overflow: "hidden",
            }}
          >
            <Illustration
              aria-hidden
              style={{ display: "block", width: "100%", height: "auto" }}
            />
          </div>
          <Text variant="headline" el="h2" noMargin>
            Sorry, we couldn’t find any results for{" "}
            <span style={{ color: "var(--a2-color-blue-600)" }}>
              “jfjkleiklfj”
            </span>
          </Text>
          <Text subdued>
            Remember to check your spelling or try searching for something else.
          </Text>
        </Flex>

        <Text variant="headline" el="h3" size="small" noMargin>
          Try these instead:
        </Text>

        <Flex direction="column" style={{ width: "100%" }}>
          <Divider spacing="4" />
          <Flex
            alignItems="center"
            justifyContent="space-between"
            gap={3}
            style={{ width: "100%" }}
          >
            <Flex alignItems="center" gap={2} style={{ minWidth: 0 }}>
              <Avatar name="Lindsay Walton" size="medium" aria-hidden />
              <Flex direction="column" style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Lindsay Walton
                </Text>
                <Text subdued size="small">
                  Front-end Developer
                </Text>
              </Flex>
            </Flex>
            <Button
              appearance="secondary"
              icon={{ before: Add }}
              aria-label="Invite Lindsay Walton"
              onClick={() => console.log("Invite Lindsay Walton")}
              style={{ flexShrink: 0 }}
            >
              Invite
            </Button>
          </Flex>
          <Divider spacing="4" />

          <Flex
            alignItems="center"
            justifyContent="space-between"
            gap={3}
            style={{ width: "100%" }}
          >
            <Flex alignItems="center" gap={2} style={{ minWidth: 0 }}>
              <Avatar name="Courtney Henry" size="medium" aria-hidden />
              <Flex direction="column" style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Courtney Henry
                </Text>
                <Text subdued size="small">
                  Designer
                </Text>
              </Flex>
            </Flex>
            <Button
              appearance="secondary"
              icon={{ before: Add }}
              aria-label="Invite Courtney Henry"
              onClick={() => console.log("Invite Courtney Henry")}
              style={{ flexShrink: 0 }}
            >
              Invite
            </Button>
          </Flex>
          <Divider spacing="4" />

          <Flex
            alignItems="center"
            justifyContent="space-between"
            gap={3}
            style={{ width: "100%" }}
          >
            <Flex alignItems="center" gap={2} style={{ minWidth: 0 }}>
              <Avatar name="Tom Cook" size="medium" aria-hidden />
              <Flex direction="column" style={{ minWidth: 0 }}>
                <Text inline style={{ fontWeight: "bold" }}>
                  Tom Cook
                </Text>
                <Text subdued size="small">
                  Director of Product
                </Text>
              </Flex>
            </Flex>
            <Button
              appearance="secondary"
              icon={{ before: Add }}
              aria-label="Invite Tom Cook"
              onClick={() => console.log("Invite Tom Cook")}
              style={{ flexShrink: 0 }}
            >
              Invite
            </Button>
          </Flex>
          <Divider spacing="4" />
        </Flex>
      </Flex>
    </Flex>
  );
}

export default App;
```

## Queue Cleared

Celebrate a cleared queue or completed work with a light illustration.

block-empty-state-queue-cleared

[StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/block-empty-state-queue-cleared?file=src/App.tsx)

```tsx lines theme={null}
import { Flex, Text, usePrefersColorScheme } from "@servicetitan/anvil2";
import UserClearedLight from "@servicetitan/anvil2-illustrations/illustrations/empty-state-user-cleared-light.svg";
import UserClearedDark from "@servicetitan/anvil2-illustrations/illustrations/empty-state-user-cleared-dark.svg";

function App() {
  const { mode } = usePrefersColorScheme();
  const Illustration = mode === "dark" ? UserClearedDark : UserClearedLight;

  return (
    <Flex justifyContent="center" style={{ padding: "2rem", width: "100%" }}>
      <Flex
        direction="column"
        alignItems="center"
        gap={4}
        style={{ textAlign: "center", maxWidth: 480, width: "100%" }}
      >
        <div
          style={{
            flexShrink: 0,
            width: 300,
            maxWidth: "100%",
            overflow: "hidden",
          }}
        >
          <Illustration
            aria-hidden
            style={{ display: "block", width: "100%", height: "auto" }}
          />
        </div>
        <Flex direction="column" alignItems="center" gap={2}>
          <Text variant="headline" el="h2" size="small" noMargin>
            Queue cleared
          </Text>
          <Text size="small" subdued>
            Grab a coffee?
          </Text>
        </Flex>
      </Flex>
    </Flex>
  );
}

export default App;
```


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