## SmallWidget


A widget with few methods (should stay inline with default threshold).


Usage


``` python
SmallWidget(name)
```


## Parameters


`name: str`  
The widget name.


## Methods

| Name | Description |
|----|----|
| [render()](#render) | Render the widget as HTML. |
| [resize()](#resize) | Resize the widget. |
| [toggle()](#toggle) | Toggle the widget visibility. |

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


#### render()


Render the widget as HTML.


Usage


``` python
render()
```


##### Returns


`str`  
HTML representation of the widget.


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


#### resize()


Resize the widget.


Usage


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


##### Parameters


`width: int`  
New width in pixels.

`height: int`  
New height in pixels.


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


#### toggle()


Toggle the widget visibility.


Usage


``` python
toggle()
```


##### Returns


`bool`  
New visibility state.
