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.
Maturity: Refining
Usage
<.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>
This component needs the Doggo.Tabs JavaScript hook. See
Phoenix LiveView Hooks for
registering it.
Keyboard
Left, Right, Up and Down - previous or next tab, wrapping at the
ends. A tab list with orientation="horizontal" uses Left and Right,
one with orientation="vertical" uses Up and Down.
Home and End - first and last tab.
Enter or Space - select the focused tab.
The tab list is a single tab stop.