Tab
Single item for Tabs. This component is not used as a standalone.
TabBosons
Id
required
Id for tab.
type:
string
Active
required
Tab title.
type:
string
default:
false
Icon
Value of icon if exists.
type:
templ.Component
Badge
Value of badge if exists.
type:
string
default:
f
Using in Tabs
1// Used in Tabs with arguments for formating
2
3@atoms.Tab(&item, props.Type, props.WithIcon, props.WithBadge, len(props.Items))