> For the complete documentation index, see [llms.txt](https://creatorlabs.gitbook.io/boltui-docs-preview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://creatorlabs.gitbook.io/boltui-docs-preview/api-reference/index/id.md).

# id

### Definition

```javascript
function id(child: HTMLElement, id: String = "") {
    return HTMLElement
}
```

### Input

* `child` : the reference to a valid bolt app, a bolt functional component or a valid bold variable component
* `id` : takes a string to assign an ID to the element

### Returns HTMLElement

The child element will be returned after assigning a valid id
