> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-bdd2bb9c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Parameters

> Reference for embedded timeline data-* options including chrome, theme, width, height, tweet-limit, show-replies, aria-polite accessibility, and DNT settings.

Customize an embedded timeline with `data-*` attributes added to a fallback anchor element or passed to a JavaScript factory function in an options object.

| Option         | Values                                                            | Default                              | Notes                                                                                                                                                                                                                                          |
| -------------- | ----------------------------------------------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `show-replies` | `true`                                                            | `false`                              | Show Posts in response to another Post or account                                                                                                                                                                                              |
| `chrome`       | `noheader`, `nofooter`, `noborders`, `transparent`, `noscrollbar` | `Undefined`                          | Toggle the display of design elements in the widget. This parameter is a space-separated list of values                                                                                                                                        |
| `theme`        | `dark`                                                            | `light`                              | Display light text on a dark background                                                                                                                                                                                                        |
| `width`        | Positive integer                                                  | `auto` (derived from container size) | Set the maximum px width of the embedded Post                                                                                                                                                                                                  |
| `height`       | Positive integer                                                  | `600`                                | Set a fixed px height of the embedded widget                                                                                                                                                                                                   |
| `tweet-limit`  | Range: `1`–`20`                                                   | `Undefined`                          | Render a timeline statically, displaying only *n* number of Posts. The height parameter has no effect when a Post limit is set                                                                                                                 |
| `aria-polite`  | `polite`, `assertive`, `rude`                                     | `polite`                             | Apply the specified aria-polite behavior to the rendered timeline. New Posts may be added to the top of a timeline, affecting screen readers                                                                                                   |
| `dnt`          | `true`, `false`                                                   | `false`                              | When set to `true`, the timeline and its embedded page on your site are not used for purposes that include [personalized suggestions](https://support.x.com/articles/20169421) and [personalized ads](https://support.x.com/articles/20170405) |

## HTML example

```html theme={null}
<a class="twitter-timeline"
  href="https://x.com/XDevelopers"
  data-width="350"
  data-height="450"
  data-chrome="nofooter noheader"
  data-tweet-limit="2">
Posts by @XDevelopers
</a>
```

## JavaScript factory example

```javascript theme={null}
twttr.widgets.createTimeline(
  {
    sourceType: "profile",
    screenName: "xdevelopers"
  },
  document.getElementById("container"),
  {
    height: 400,
    chrome: "nofooter",
    tweetLimit: 2
  }
);
```
