> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Visibility

Visibility allows the user to toggle between showing or hiding an element.

---

**Widget Configuration Output**

```json showLineNumbers={false}
{
  "buttonVisibility": "show"
}
```

> Output values are “show” or “hide”.

---

**User Interface Output**

![output](/_fern-img/a50b51cb6340740c16e069c83a2c1c8b47c788e3c5310aaa7e70153bb4d6dc51.webp)

---

**JSON Schema**

| Property  | Type   | Description                                                                                                | Example            |
| --------- | ------ | ---------------------------------------------------------------------------------------------------------- | ------------------ |
| `type`    | string | The type of setting component to display.                                                                  | visibility         |
| `label`   | string | The user friendly message to inform the user how this setting will be used.                                | Button             |
| `id`      | string | The variable name where the setting value will be available in the widget template.                        | "buttonVisibility" |
| `default` | string | The default value to use when rendering the widget for the first time. Default values are "show or “hide”. | show               |