# [Usage](../../../usage.md) > [Components](../basics.md) > [Visuals](../basics.md) > View

A component to render HTML, with polling control. Use it for live-rendered fragments or closure-generated HTML that must refresh; use [CodeView](codeview.md) to display code as text and [Card](card.md) for a titled static container.

---
## Usage

- Blade:
```php
{!! 
    \KFramework\Components\Visual\HTMLView::make()
        ->setContent('<html string>')
!!}
```
- Controller:
```php
HTMLView::make()
    ->setContent('<html string>')
```

**End-to-end example:** live queue status refreshing every 7 seconds.
```php
// Blade:
{!!
    \KFramework\Components\Visual\HTMLView::make()
        ->setContent(fn() => view('partials.queue-status')->render())
        ->setPoll(7000)
!!}

// Controller:
use KFramework\Components\Visual\HTMLView;

$view = HTMLView::make()
    ->setContent('<p>Queue: 3 jobs pending</p>')
    ->setPoll(7000);

return view('ops.dashboard', compact('view'));
```

---
## Standard attributes for HTMLView

- `uuid`
- `id` 
- `classes`
- `extraAttributes`
- `content`
  - It is used to set the html content of the view.
- `schema`
  - Follows the schema as forms, fieldsets, repeaters and other elements if set, it will replace content. Use `schema` for nested components and `content` for raw HTML.
- `columns`
  - Columns for the schema, if set.
- `columnSpan`

See their usage and description [here](../basics.md).

---
## HTMLView specific attributes

### - `poll` | `->setPoll()`
Enables polling for the content, useful when the content is generated by a dynamic Closure. If simply set the method `->setPoll()` the default polling time will be `5000`ms (5 seconds). Custom polling time can be decided setting it inside:
```php
  ->setPoll(7000)
```

It now has a polling time of `7000`ms (7 seconds). It accepts milliseconds.

| Types | Default |
|-------|---------|
| `int` | `null`  |

## See also
- [Components basics](../basics.md)
- [CodeView](codeview.md), [Card](card.md), [Table](table.md)
- [content](../shared_attributes/content.md), [schema](../shared_attributes/schema.md), [columns](../shared_attributes/columns.md)
