Table

Id name Job Favourite Color
1 Cy Ganderton Quality Control Specialist Blue
2 Hart Hagerty Desktop Support Technician Purple
3 Brice Swyre Tax Accountant Red
Attribute Type Documentation Default Value
id :string
rows :list
row_id :any the function for generating the row id
row_click :any the function for handling phx-click on each row
row_item :any the function for mapping each row before calling the :col and :action slots &Function.identity/1
zebra :boolean false
size :string
rest :global
col :slot
<:col :let={user} label="Id">
  <%= user.id %>
</:col>
<:col :let={user} label="name">
  <%= user.name %>
</:col>
<:col :let={user} label="Job">
  <%= user.job %>
</:col>
<:col :let={user} label="Favourite Color">
  <%= user.favourite_color %>
</:col>
action :slot the slot for showing user actions in the last table column
inner_block :slot