Usage
<.table id="pets" rows={@pets}>
<:col :let={p} label="name"><%= p.name %></:col>
<:col :let={p} label="age"><%= p.age %></:col>
</.table>
Row actions
row_click sets phx-click on each cell, which reaches pointer users only.
Where you use it, repeat the action as a link or button inside the row, so
that it can also be reached by keyboard.
<.table id="pets" rows={@pets} row_click={&JS.navigate(~p"/pets/#{&1}")}>
<:col :let={p} label="name">
<.link navigate={~p"/pets/#{p}"}><%= p.name %></.link>
</:col>
</.table>