Tab
---import { Tab } from "wf-components";import { TabContainer } from "wf-components";---
<div class="p-4 h-64"> <TabContainer> <Tab name="tab-group" checked id='tab-1' label="Tab 1"> "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." </Tab> <Tab name="tab-group" id="tab-2" label="Tab 2"> "Lorem ips2um dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore 2et dolore magna aliqua. Ut enim ad minim venia2m, quis nostrud exercitation ullamco laboris nisi ut2 aliquip ex ea commodo consequat. Duis aute irure dolor in repre2henderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt m2ollit anim id est laborum."2 </Tab> </TabContainer></div>Props
label
Required The label of the tab. This is what will be displayed on the tab itself.
name
Required The name of the tab group. This is used to group tabs together. All tabs in the same group should have the same name.
id
Required The id of the tab. This is used to identify the tab in the DOM. It should be unique within the tab group.
checked
Optional If this tab should be checked by default. Only one tab in a group can be checked at a time.