Tabs
Documentation and examples for how to use Tabs components.
#
Basic tabsUse UxfTabs, UxtTabsHeader, UxfTabsContent components to construct tabs interface.
Basic example:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
Center tabsSet property align to 'center' to center tabs horizontally:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs align="center"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs align="center"> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs align="center"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
Right tabsSet property align to 'end' to align items on right:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs align="end"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs align="end"> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs align="end"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
PillsSet property pills to 'true' to display tabs as pills:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs pills> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs pills> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs pills> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
VerticalSet property vertical to 'true' to display tabs vertically:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs pills vertical align="right"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs pills vertical align="right"> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs pills vertical align="right"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
Set initially active tabSet property active to index (starting from 1) of the tab you want to be initially opened:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs active="2"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
<UxfTabs active="2"> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent></UxfTabs>
<uxf-tabs active="2"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs>
#
Set active tabSet property active to index (starting from 1) of the tab you want to be opened:
This is some placeholder 1 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 2 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 3 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
This is some placeholder 4 content the Home tab's associated content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.
- Web Component
- React
- Angular
<uxf-tabs id="tabs"> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content></uxf-tabs><uxf-button id="setSecondTabActiveButton" variant="primary"> Toggle Offcanvas</uxf-button>
<script> const setSecondTabActiveButton = document.getElementById('setSecondTabActiveButton'); const tabs = document.getElementById('tabs'); setSecondTabActiveButton.addEventListener('click', function (event) { tabs.active = 2; });</script>
export const LiveDemo = () => { const tabsRef = React.createRef(); return ( <> <UxfTabs ref={tabsRef}> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Active</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header">Link</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> <UxfTabsHeader slot="header" disabled>Disabled</UxfTabsHeader> <UxfTabsContent slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </UxfTabsContent> </UxfTabs> <UxfButton variant="primary" onClick={ () => { tabsRef.current.active = 2; } }> Set second tab active </UxfButton> </> );};
<LiveDemo />
import { Component } from '@angular/core';
@Component({ selector: 'app-root', template: ` <uxf-tabs #tabs> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 1 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Active</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 2 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header">Link</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 3 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> <uxf-tabs-header slot="header" disabled>Disabled</uxf-tabs-header> <uxf-tabs-content slot="content"> <p class="mt-2"><strong>This is some placeholder 4 content the Home tab's associated content.</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat, nisl in efficitur pellentesque, eros felis aliquam felis, venenatis fringilla augue massa id augue. Quisque eros nisi, pharetra id malesuada sit amet, pellentesque non tellus.</p> </uxf-tabs-content> </uxf-tabs> <uxf-button (click)="handleClick(tabs)" variant="primary"> Toggle Offcanvas </uxf-button> `})
export class AppComponent { handleClick(tabs: any) { tabs.el.active = 2; }}