Renders tab panels.
This component is meant for tabs that toggle content panels within the page.
If you want to link to a different view or live action, use
tab_navigation/1
instead.
<.tabs id="dog-breed-profiles" label="Dog Breed Profiles">
<:panel label="Golden Retriever">
<p>
Friendly, intelligent, great with families. Origin: Scotland. Needs
regular exercise.
</p>
</:panel>
<:panel label="Siberian Husky">
<p>
Energetic, outgoing, distinctive appearance. Origin: Northeast Asia.
Loves cold climates.
</p>
</:panel>
<:panel label="Dachshund">
<p>
Playful, stubborn, small size. Origin: Germany. Enjoys sniffing games.
</p>
</:panel>
</.tabs>
Friendly, intelligent, great with families. Origin: Scotland. Needs regular exercise.
Energetic, outgoing, distinctive appearance. Origin: Northeast Asia. Loves cold climates.
Playful, stubborn, small size. Origin: Germany. Enjoys sniffing games.
<.tabs id="tabs-single-default" label="Dog Breed Profiles"> <:panel label="Golden Retriever"> <p> Friendly, intelligent, great with families. Origin: Scotland. Needs regular exercise. </p> </:panel> <:panel label="Siberian Husky"> <p> Energetic, outgoing, distinctive appearance. Origin: Northeast Asia. Loves cold climates. </p> </:panel> <:panel label="Dachshund"> <p> Playful, stubborn, small size. Origin: Germany. Enjoys sniffing games. </p> </:panel> </.tabs>