@bdt-component-library/tabs

Tabs component

Usage no npm install needed!

<script type="module">
  import bdtComponentLibraryTabs from 'https://cdn.skypack.dev/@bdt-component-library/tabs';
</script>

README

Tabs Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of tabs according to style guide.

API

prop type required default explanation
className string no n/a Adds an optional classname to the inner component
wrapperClass string no n/a Adds an optional classname to the main component wrapper
fullWidth boolean no undefined Determines if the tabs are full width
children React node yes n/a The components to render inside the tabs container.