JSPM

@instructure/ui-focusable

5.36.0-rc.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6079
  • Score
    100M100P100Q154599F
  • License MIT

A UI component library made by Instructure Inc.

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

npm build-status MIT License Code of Conduct

Installation

yarn add @instructure/ui-focusable

Usage

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: