@fluentui/react-tabster
TypeScript icon, indicating that this package has built-in type declarations

9.20.1 • Public • Published

@fluentui/react-tabster

Tabster components for Fluent UI React

Library for focus management that leverages tabster.

The API currently only supports declarative data-* attributes that are returned using the exported react hooks:

import * as React from 'react';
import { useArrowNavigationGroup } from '@fluentui/react-tabster';

const Item: React.FC = ({ children }) => <div tabIndex={0}>Item</div>;

const ArrowNavigationExample: React.FC = ({ children }) => {
  const attrs = useArrowNavigationGroup({ circular: true });

  return (
    <div {...attrs}>
      <Item />
      <Item />
      <Item />
      <Item />
      <Item />
      <Item />
    </div>
  );
};

const App: React.FC = () => {
  return <ArrowNavigationExample />;
};

Dependents (79)

Package Sidebar

Install

npm i @fluentui/react-tabster

Weekly Downloads

91,476

Version

9.20.1

License

MIT

Unpacked Size

393 kB

Total Files

109

Last publish

Collaborators

  • sopranopillow
  • microsoft1es
  • justslone
  • chrisdholt
  • miroslavstastny
  • levithomason
  • uifabricteam
  • uifrnbot
  • dzearing
  • layershifter
  • ling1726
  • travisspomer