Package Exports
- @instructure/ui-focusable
- @instructure/ui-focusable/lib/components/Focusable
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-focusable) 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-focusable
Installation
yarn add @instructure/ui-focusableUsage
import React from 'react'
import Focusable from '@instructure/ui-focusable/lib/components/Focusable'
export default MyFocusable = function () {
return (
<Focusable>
{({ focused }) => (
<FocusableView focused={focused}>
Hello! Focus me!
</FocusableView>
)}
</Focusable>
)
}Components
The ui-focusable package contains the following: