# `Toddy.Iced.Widget.Space`
[🔗](https://github.com/toddy-ui/toddy-elixir/blob/v0.3.0/lib/toddy/iced/widget/space.ex#L1)

Empty space -- invisible spacer widget.

## Props

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

# `option`

```elixir
@type option() ::
  {:width, Toddy.Iced.Length.t()}
  | {:height, Toddy.Iced.Length.t()}
  | {:a11y, Toddy.Iced.A11y.t()}
```

# `t`

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

# `a11y`

```elixir
@spec a11y(space :: t(), a11y :: Toddy.Iced.A11y.t()) :: t()
```

Sets accessibility annotations.

# `build`

```elixir
@spec build(space :: t()) :: Toddy.Iced.ui_node()
```

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

# `height`

```elixir
@spec height(space :: t(), height :: Toddy.Iced.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 :: Toddy.Iced.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*
