This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@temporg/ui-focusable
TypeScript icon, indicating that this package has built-in type declarations

99.10.0 • Public • Published

category: packages

ui-focusable

npm  build-status  MIT License  Code of Conduct

A utility used to identify when an element receives focus.

Components

The ui-focusable package contains the following:

Installation

yarn add @temporg/ui-focusable

Usage

import React from 'react'
import { Focusable } from '@temporg/ui-focusable'

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

Readme

Keywords

none

Package Sidebar

Install

npm i @temporg/ui-focusable

Weekly Downloads

1

Version

99.10.0

License

MIT

Unpacked Size

61.3 kB

Total Files

17

Last publish

Collaborators

  • npm