category: packages
ui-layout
Installation
yarn add @instructure/ui-layout
Usage
import React from 'react'
import { DrawerLayout } from '@instructure/ui-layout'
const MyLayout = () => {
return (
<DrawerLayout>
<DrawerLayout.Tray>Hello from layout tray</DrawerLayout.Tray>
<DrawerLayout.Content>Hello from layout content</DrawerLayout.Content>
</DrawerLayout>
)
}
Components
The ui-layout
package contains the following components:
Deprecated components
The following components have been deprecated and will be removed from the ui-layout
package:
Codemods are provided to assist in updating the packages. See ui-codemods
Utilities
The ui-layout
package contains the following utilities:
Contribute
See the contributing guidelines for details.
License
MIT