## Widget


A simple widget for demonstration.


Usage


``` python
Widget(
    name,
    color="red",
)
```


## Parameters


`name: str`  
The name of the widget.

`color: str = ``"red"`  
The widget color.


## Examples

``` python
>>> w = Widget("button", color="blue")
>>> w.name
```

'button'


## Methods

| Name | Description |
|----|----|
| [render()](#render) | Render the widget as a string. |
| [resize()](#resize) | Resize the widget. |

------------------------------------------------------------------------


#### render()


Render the widget as a string.


Usage


``` python
render()
```


##### Returns


`str`  
An HTML-like string representation.


------------------------------------------------------------------------


#### resize()


Resize the widget.


Usage


``` python
resize(width, height)
```


##### Parameters


`width: int`  
New width in pixels.

`height: int`  
New height in pixels.
