Table

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
action :slot the slot for showing user actions in the last table column
inner_block :slot
<.thead>
  <.tr>
    <.th>Name</.th>
    <.th>Job</.th>
    <.th>Favourite Color</.th>
  </.tr>
</.thead>
<.tbody>
  <!-- row 1 -->
  <.tr>
    <.th>1</.th>
    <.td>Cy Ganderton</.td>
    <.td>Quality Control Specialist</.td>
    <.td>Blue</.td>
  </.tr>
  <!-- row 2 -->
  <.tr>
    <.th>2</.th>
    <.td>Hart Hagerty</.td>
    <.td>Desktop Support Technician</.td>
    <.td>Purple</.td>
  </.tr>
  <!-- row 3 -->
  <.tr>
    <.th>3</.th>
    <.td>Brice Swyre</.td>
    <.td>Tax Accountant</.td>
    <.td>Red</.td>
  </.tr>
</.tbody>