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

Alignment values for `align_x` and `align_y` widget props.

Horizontal: `:left`, `:center`, `:right`.
Vertical: `:top`, `:center`, `:bottom`.

# `horizontal`

```elixir
@type horizontal() :: :left | :center | :right
```

# `t`

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

# `vertical`

```elixir
@type vertical() :: :top | :center | :bottom
```

# `encode`

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

Encodes an alignment value to the wire format.

## Examples

    iex> Plushie.Type.Alignment.encode(:left)
    "left"

    iex> Plushie.Type.Alignment.encode(:center)
    "center"

    iex> Plushie.Type.Alignment.encode(:right)
    "right"

    iex> Plushie.Type.Alignment.encode(:top)
    "top"

    iex> Plushie.Type.Alignment.encode(:bottom)
    "bottom"

---

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