Package Exports
- @instructure/ui-tabs
- @instructure/ui-tabs/lib/components/TabList
- @instructure/ui-tabs/lib/components/TabList/TabPanel
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 (@instructure/ui-tabs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
category: packages
ui-tabs
Installation
yarn add @instructure/ui-tabsUsage
import React from 'react'
import TabList, { TabPanel } from '@instructure/ui-tabs/lib/components'
export default MyTabList = function () {
return (
<TabList defaultSelectedIndex={1}>
<TabPanel title="First Tab">
Tab One
</TabPanel>
<TabPanel title="Second Tab">
Tab Two (selected)
</TabPanel>
</TabList>
)
}