JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q74616F
  • License MIT

This component renders tabs and the related panels

Package Exports

  • @t7/tabs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@t7/tabs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This component can be used like so.

function handleClick (e, label) {
  /*
    `e` is the event.

    `label` is the text itself.
  */
}
<Tabs selected={0} handleClick={handleClick}>
  <TabPanel label='Tab 1'>
    <p>
      Tab content for "Tab 1"
    </p>
  </TabPanel>
  <TabPanel label='Tab 2'>
    <p>
      Tab content for "Tab 2"
    </p>
  </TabPanel>
  <TabPanel label='Tab 3'>
    <p>
      Tab content for "Tab 3"
    </p>
  </TabPanel>
</Tabs>