# `Plushie.Type.Range`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/type/range.ex#L1)

Validates `{min, max}` numeric range tuples.

Used by slider and progress bar widgets for the value range.

# `t`

```elixir
@type t() :: {number(), number()}
```

# `cast`

```elixir
@spec cast(term()) :: {:ok, t()} | :error
```

Validates a `{min, max}` range tuple.

## Examples

    iex> Plushie.Type.Range.cast({0, 100})
    {:ok, {0, 100}}

    iex> Plushie.Type.Range.cast({-1.0, 1.0})
    {:ok, {-1.0, 1.0}}

    iex> Plushie.Type.Range.cast(:nope)
    :error

---

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