# `PetalComponents.Loading`
[🔗](https://github.com/petalframework/petal_components/blob/v3.2.0/lib/petal_components/loading.ex#L1)

# `spinner`

## Attributes

* `size` (`:string`) - Defaults to `"sm"`. Must be one of `"sm"`, `"md"`, or `"lg"`.
* `size_class` (`:any`) - custom CSS classes for size. eg: h-4 w-4. Defaults to `nil`.
* `class` (`:any`) - CSS class. Defaults to `nil`.
* `show` (`:boolean`) - show or hide spinner. Defaults to `true`.
* Global attributes are accepted.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
