# `Plushie.Table.Cell`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/table/cell.ex#L1)

A cell inside a `Plushie.Table.Row`.

Each cell declares which column it belongs to via the `column`
field (must match a column `:key` from the table's `columns`
prop). Children are any widgets that form the cell content.

    cell "name", text(user.name)

    cell "actions" do
      button("edit", "Edit")
      button("del", "Delete")
    end

# `option`

```elixir
@type option() :: {:column, String.t() | atom()}
```

# `t`

```elixir
@type t() :: %Plushie.Table.Cell{
  children: [Plushie.Widget.ui_node()],
  column:
    (String.t() | atom())
    | Plushie.Animation.Transition.t()
    | Plushie.Animation.Spring.t()
    | Plushie.Animation.Sequence.t()
    | nil,
  id: String.t() | nil
}
```

# `build`

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

Converts this widget struct to a `ui_node()` map.

# `column`

```elixir
@spec column(widget :: t(), value :: (String.t() | atom()) | nil) :: t()
```

Column key this cell belongs to.

Accepts `String.t() | atom()`.

# `extend`

```elixir
@spec extend(widget :: t(), children :: [Plushie.Widget.child()]) :: t()
```

Appends multiple children to the widget.

# `new`

```elixir
@spec new(opts :: [option()]) :: t()
```

Creates a new element without an explicit ID (auto-assigned by parent container).

# `new`

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

Creates a new element with the given ID and keyword options.

# `push`

```elixir
@spec push(widget :: t(), child :: Plushie.Widget.child()) :: t()
```

Appends a child to the widget.

# `type_name`

```elixir
@spec type_name() :: String.t()
```

Returns the element type string for the wire protocol.

# `with_options`

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

Applies keyword options to an existing widget struct.

---

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