> 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/component.md).

# Component

### Definition

```javascript
function Component(callback: function, ...states: State) {
    return HTMLElement
}
```

### Input

* `callback` : functional component or a callback component to render when state is changed
* `states[]` : array of state objects returned from [State()](/boltui-docs-preview/api-reference/index/state.md) function to which the component will bind to

### Returns HTMLELement

The HTMLElement will be returned from the callback, after being wrapped under a div element
