Renders a table with generic styling.
<.table id="users" rows={@users}> <:col :let={user} label="id"><%= user.id %></:col> <:col :let={user} label="username"><%= user.username %></:col> </.table>
the function for generating the row id
the function for handling phx-click on each row
the function for mapping each row before calling the :col and :action slots
<:col :let={user} label="Id"> <%= user.id %> </:col> <:col :let={user} label="User name"> <%= user.username %> </:col>
the slot for showing user actions in the last table column
<:action><.button size="sm" variant="outline" class="mr-1">Edit</.button></:action>