> For the complete documentation index, see [llms.txt](https://lewe.gitbook.io/lewe-bootstrap-visuals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lewe.gitbook.io/lewe-bootstrap-visuals/shortcodes/table.md). Agents can also search and read this documentation through its [MCP server](https://lewe.gitbook.io/lewe-bootstrap-visuals/~gitbook/mcp).

# Table

Wraps table markup in the Bootstrap table styles.

<figure><img src="https://2850223474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOT4oO0pn3LrvJLuVbRqg%2Fuploads%2Fgit-blob-e358d5bbb9b69cfa5782e509641b7c8756c893ba%2Fcomponent-table.png?alt=media" alt="Table example"><figcaption><p>Table example</p></figcaption></figure>

## Example

{% code overflow="wrap" %}

```
[bsv-table striped="yes" hover="yes" bordered="yes" responsive="yes"]
<table>
  <thead><tr><th>Name</th><th>Value</th></tr></thead>
  <tbody><tr><td>One</td><td>1</td></tr></tbody>
</table>
[/bsv-table]
```

{% endcode %}

## Format

{% code overflow="wrap" %}

```
[bsv-table parameter="value" ...]<table>...</table>[/bsv-table]
```

{% endcode %}

## Parameters

| Parameter    | Description                                                    | Default |
| ------------ | -------------------------------------------------------------- | ------- |
| `striped`    | Add row striping: `yes` or `no`.                               | `no`    |
| `bordered`   | Add cell borders: `yes` or `no`.                               | `no`    |
| `hover`      | Add row hover state: `yes` or `no`.                            | `no`    |
| `small`      | Use compact cells: `yes` or `no`.                              | `no`    |
| `responsive` | Wrap the table in a responsive container: `yes` or `no`.       | `no`    |
| `style`      | Optional table color style: any of the eight Bootstrap styles. | *empty* |

The content is passed through `wp_kses_post`; table markup is allowed.
