Package Exports
- @instructure/ui-tabs
- @instructure/ui-tabs/lib/TabList
- @instructure/ui-tabs/lib/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 (@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
Components
The ui-tabs package contains the following:
Deprecated Components
The following components will be removed in version 7.0.0.
- TabList (use Tabs instead)
Installation
yarn add @instructure/ui-tabsUsage
---
example: false
---
import React from 'react'
import { Tabs } from '@instructure/ui-tabs'
export default MyTabs = function () {
return (
<Tabs>
<Tabs.Panel renderTitle="First Tab">
Tab One
</Tabs.Panel>
<Tabs.Panel renderTitle="Second Tab" isSelected>
Tab Two
</Tabs.Panel>
<Tabs.Panel renderTitle="Third Tab" isDisabled>
Tab Three
</Tabs.Panel>
</Tabs>
)
}