Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 901 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 901 Bytes

DEPRECATED. Tabs are already implemented in sveltestrap.

This is a simple solution of Bootstrap taps issue.

Get started

yarn add hazg/sveltestrap-tabs
<script>
  import { Tabs, TabHeader, Tab, TabContent, TabContentItem } from "sveltestrap-tabs"
</script>

<Tabs defaultId="one">

  <TabHeader>
    <Tab id="one">One</Tab>
    <Tab id="two">Two</Tab>
  </TabHeader>

  <TabContent>
    <TabContentItem id="one">
      first tab content
    </TabContentItem>
    <TabContentItem id="two">
      second tab content
    </TabContentItem>
  </TabContent>
</Tabs>

Author

Original author: @sonjoydatta for more info.

Fork author: @hazg

License

This project is licensed under the MIT License - see the LICENSE file for details.