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

Composite type for unions.

Tries each type in order. The first successful cast wins.

    field :background, {:union, [Plushie.Type.Color, Plushie.Type.Gradient]}

---

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