JSPM

@instructure/ui-focusable

6.3.1-rc.12+df5f505b
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3570
  • Score
    100M100P100Q154721F
  • License MIT

A UI component library made by Instructure Inc.

Package Exports

  • @instructure/ui-focusable
  • @instructure/ui-focusable/lib/Focusable
  • @instructure/ui-focusable/lib/FocusableView

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'

const MyFocusableElement = () => {
  return (
    <Focusable>
    {({ focused }) => (
      <FocusableView focused={focused}>
        Hello! Focus me!
      </FocusableView>
    )}
    </Focusable>
  )
}

Components

The ui-focusable package contains the following: