# `Plushie.Widget.Space`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.6.0/lib/plushie/widget/space.ex#L1)

Empty space -- invisible spacer widget.

## Props

- `width` (length) -- space width. Default: shrink. See `Plushie.Type.Length`.
- `height` (length) -- space height. Default: shrink.
- `a11y` (map) -- accessibility overrides. See `Plushie.Type.A11y`.

# `option`

```elixir
@type option() ::
  {:width, Plushie.Type.Length.t()}
  | {:height, Plushie.Type.Length.t()}
  | {:a11y, Plushie.Type.A11y.t() | map() | keyword()}
```

# `t`

```elixir
@type t() :: %Plushie.Widget.Space{
  a11y: Plushie.Type.A11y.t() | nil,
  height: Plushie.Type.Length.t() | nil,
  id: String.t(),
  width: Plushie.Type.Length.t() | nil
}
```

# `a11y`

```elixir
@spec a11y(space :: t(), a11y :: Plushie.Type.A11y.t() | map() | keyword()) :: t()
```

Sets accessibility annotations.

# `build`

```elixir
@spec build(space :: t()) :: Plushie.Widget.ui_node()
```

Converts this space struct to a `ui_node()` map via the `Plushie.Widget` protocol.

# `height`

```elixir
@spec height(space :: t(), height :: Plushie.Type.Length.t()) :: t()
```

Sets the space height.

# `new`

```elixir
@spec new(id :: String.t(), opts :: [option()]) :: t()
```

Creates a new space struct with optional keyword opts.

# `width`

```elixir
@spec width(space :: t(), width :: Plushie.Type.Length.t()) :: t()
```

Sets the space width.

# `with_options`

```elixir
@spec with_options(space :: t(), opts :: [option()]) :: t()
```

Applies keyword options to an existing space struct.

---

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