Skip to content

Commit

Permalink
add more styles for table
Browse files Browse the repository at this point in the history
  • Loading branch information
phcurado committed Jul 15, 2024
1 parent a7ec41c commit 2cdd01d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions daisy_ui_components_site/storybook/components/table.story.exs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,52 @@ defmodule Storybook.Components.Table do
</:col>
"""
]
},
%Variation{
id: :zebra,
attributes: %{
zebra: true,
rows: get_users()
},
slots: [
"""
<: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>
"""
]
},
%Variation{
id: :table_xs,
attributes: %{
size: "xs",
rows: get_users()
},
slots: [
"""
<: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>
"""
]
}
]
end
Expand Down

0 comments on commit 2cdd01d

Please sign in to comment.