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

# Status

> Show a named state with a colored indicator and optional loading feedback.

export const StoryEmbed = ({storyId, title, height = 240}) => <>
    <Tabs>
      <Tab title="Light">
        <iframe title={`${title} (light)`} src={`https://storybook.twenty.com/iframe.html?id=${storyId}&viewMode=story&globals=colorScheme:light`} width="100%" height={height} loading="lazy" style={{
  border: 0
}} />
      </Tab>
      <Tab title="Dark">
        <iframe title={`${title} (dark)`} src={`https://storybook.twenty.com/iframe.html?id=${storyId}&viewMode=story&globals=colorScheme:dark`} width="100%" height={height} loading="lazy" style={{
  border: 0
}} />
      </Tab>
    </Tabs>
    <a href={`https://storybook.twenty.com/?path=/story/${storyId}`}>
      Open in Storybook
    </a>
  </>;

`Status` combines a colored dot, a text label, and an optional loader. Use it for workflow or record states. Use [Tag](/ui/primitives/data-display/tag) for a category without the status indicator.

<StoryEmbed storyId="ui-data-display-status--documentation" title="Status example" />

## Record state

```tsx theme={null}
import { Status } from 'twenty-ui/primitives/data-display';

export const RecordStatus = () => <Status color="green">Active</Status>;
```

`color` is required and uses the theme palette. The label communicates the meaning independently of the color. The default element is a `span`; `weight="medium"` emphasizes its text.

## Loading and announcements

```tsx theme={null}
import { Status } from 'twenty-ui/primitives/data-display';

type SaveStatusProps = { isSaving: boolean };

export const SaveStatus = ({ isSaving }: SaveStatusProps) => (
  <div role="status">
    <Status color={isSaving ? 'blue' : 'green'} loading={isSaving}>
      {isSaving ? 'Saving' : 'Saved'}
    </Status>
  </div>
);
```

`loading` shows a loader after the label. The component does not add a live region or change its text automatically. Keep a `role="status"` container mounted when updates should be announced to assistive technology, and provide a label that describes the current state.

## Change a state

```tsx theme={null}
import { Status } from 'twenty-ui/primitives/data-display';

type ChangeStatusActionProps = {
  isUpdating: boolean;
  onChangeStatus: () => void;
};

export const ChangeStatusAction = ({
  isUpdating,
  onChangeStatus,
}: ChangeStatusActionProps) => (
  <Status
    color="blue"
    loading={isUpdating}
    disabled={isUpdating}
    onClick={onChangeStatus}
    aria-label="Change record status"
  >
    {isUpdating ? 'Updating' : 'In progress'}
  </Status>
);
```

`onClick` renders a native button with pointer, Enter, and Space activation. `loading` does not prevent repeat activation; pass `disabled` when the action should wait. If `render` replaces the button with a non-button element, set `nativeButton={false}`.

## Props

Types and defaults are generated from the public component types. Native attributes and event handlers are also accepted.

<ParamField body="color" type="&#x22;ruby&#x22; | &#x22;red&#x22; | &#x22;crimson&#x22; | &#x22;tomato&#x22; | &#x22;orange&#x22; | &#x22;amber&#x22; | &#x22;yellow&#x22; | &#x22;lime&#x22; | &#x22;grass&#x22; | &#x22;green&#x22; | &#x22;jade&#x22; | &#x22;mint&#x22; | &#x22;turquoise&#x22; | &#x22;cyan&#x22; | &#x22;sky&#x22; | &#x22;blue&#x22; | &#x22;iris&#x22; | &#x22;violet&#x22; | &#x22;purple&#x22; | &#x22;plum&#x22; | &#x22;pink&#x22; | &#x22;bronze&#x22; | &#x22;gold&#x22; | &#x22;brown&#x22; | &#x22;gray&#x22;" required>
  Theme color used for the status background, text, and loader.
</ParamField>

<ParamField body="disabled" type="boolean" default="false">
  Applies disabled styling and disables activation when `onClick` is supplied.
</ParamField>

<ParamField body="loading" type="boolean" default="false">
  Shows a loader after the label. Does not disable the control or announce a status change by itself.
</ParamField>

<ParamField body="nativeButton" type="boolean" default="true">
  Set to `false` when using `render` with an element other than a native button.
</ParamField>

<ParamField body="onClick" type="MouseEventHandler<HTMLButtonElement> | MouseEventHandler<HTMLElement>">
  Handles activation and renders a native button by default. Without it, the default element is a span.
</ParamField>

<ParamField body="render" type="NonNullable<ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}> | undefined>">
  Replaces the default element. Required when `nativeButton` is `false`.
</ParamField>

<ParamField body="weight" type="&#x22;regular&#x22; | &#x22;medium&#x22;" default="regular">
  Font weight of the label.
</ParamField>
