<.table
id="table-single-default"
rows={[%{id: "#1", status: "Pending verification", username: "Alice Smith #1", email: "[email protected]", is_unicorn: false, latest_deposit: "320 EURO"}, %{id: "#2", status: "Premium member", username: "Carlos Rivera #2", email: "[email protected]", is_unicorn: true, latest_deposit: "1500 EURO"}, %{id: "#3", status: "Account locked", username: "Eva Müller #3", email: "[email protected]", is_unicorn: false, latest_deposit: "87 EURO"}, %{id: "#4", status: "New user", username: "Tom Lee #4", email: "[email protected]", is_unicorn: true, latest_deposit: "230 EURO"}, %{id: "#5", status: "VIP", username: "Nina Patel #5", email: "[email protected]", is_unicorn: false, latest_deposit: "899 EURO"}, %{id: "#6", status: "Status 6", username: "John Doe #6", email: "[email protected]", is_unicorn: true, latest_deposit: "694 EURO"}, %{id: "#7", status: "Suspended", username: "George Wang #7", email: "[email protected]", is_unicorn: false, latest_deposit: "0 EURO"}, %{id: "#8", status: "Status 8", username: "Lena Novak #8", email: "[email protected]", is_unicorn: true, latest_deposit: "420 EURO"}, %{id: "#9", status: "Active", username: "Omar Farah #9", email: "[email protected]", is_unicorn: false, latest_deposit: "310 EURO"}, %{id: "#10", status: "Status 10", username: "Sofia Rossi #10", email: "[email protected]", is_unicorn: true, latest_deposit: "1250 EURO"}]}
>
<:col :let={row} label="ID" >
{row.id}
</:col>
<:col :let={row} label="Username" >
{row.username}
</:col>
<:col :let={row} label="Is Unicorn?" >
<%= if row.is_unicorn, do: "yes", else: "not" %>
</:col>
<:col :let={row} label="Email" >
{row.email}
</:col>
<:col :let={row} label="Status" >
{row.status}
</:col>
<:col :let={row} label="Latest Deposit" >
{row.latest_deposit}
</:col>
</.table>