-
-
Save TheShubhamVsnv/6a979f43cdd364effe4d88573c5fecd8 to your computer and use it in GitHub Desktop.
Horizontal Tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<lightning-card title="Tab Example"> <!-- Lightning card component --> | |
<div class="slds-tabs_default"> <!-- Container for the tabs --> | |
<lightning-tabset variant="default"> <!-- Tabset component --> | |
<lightning-tab label="Tab 1" value="1"> <!-- First tab --> | |
<p>This is the content of Tab 1.</p> | |
</lightning-tab> | |
<lightning-tab label="Tab 2" value="2"> <!-- Second tab --> | |
<p>This is the content of Tab 2.</p> | |
</lightning-tab> | |
<lightning-tab label="Tab 3" value="3"> <!-- Third tab --> | |
<p>This is the content of Tab 3.</p> | |
</lightning-tab> | |
</lightning-tabset> | |
</div> | |
</lightning-card> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment