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

# Sweet Alert

> An Object which contains all the SweetAlert information.

```js theme={null}
theme: SoftUI({
  sweetalert: {
    errors: {
      requirePremium: String,
    },
    success: {
      login: String,
    },
  },
});
```

## Example Usage

```js theme={null}
theme: SoftUI({
  sweetalert: {
    errors: {
      requirePremium: "You need to be a premium member to do this.",
    },
    success: {
      login: "Successfully logged in.",
    },
  },
});
```

<Frame>
  <img src="https://mintcdn.com/assistantscenter/e0fzjuWUPc5-sSJC/images/content/sweetalert-success.jpg?fit=max&auto=format&n=e0fzjuWUPc5-sSJC&q=85&s=aa0f15f5634aa257e8b4dd44f328631f" width="356" height="88" data-path="images/content/sweetalert-success.jpg" />
</Frame>

## Props

<ResponseField name="errors" type="Object" required>
  <Expandable title="properties" defaultOpen>
    <ResponseField name="requirePremium" type="string" required>
      The error message for premium users
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="success" type="Object" required>
  <Expandable title="properties" defaultOpen>
    <ResponseField name="login" type="string" required>
      The success message for logged in users
    </ResponseField>
  </Expandable>
</ResponseField>
