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

Orientation for the scrollable `direction` prop and rule widget.

Maps to iced's horizontal/vertical axis variants.

# `t`

```elixir
@type t() :: :horizontal | :vertical | :both
```

# `encode`

```elixir
@spec encode(direction :: t()) :: String.t()
```

Encodes a direction value to the wire format.

## Examples

    iex> Plushie.Type.Direction.encode(:horizontal)
    "horizontal"

    iex> Plushie.Type.Direction.encode(:vertical)
    "vertical"

    iex> Plushie.Type.Direction.encode(:both)
    "both"

---

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