Skip to content

Commit

Permalink
fix: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Jul 10, 2023
1 parent e89693e commit a477167
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions packages/tab-list/src/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ import { useRef } from 'react';

import styles from './styles/TabList.module.css';

type TabListProps<T extends string | number> =
| AriaTabListProps<HTMLDivElement> & {
/** The active Tab to show on render. The value passed in here should match the value of the active Tab's Item key. */
activeTab?: T;
/** CSS classes to pass into the TabList wrapper div. */
className?: string;
/** The children passed into the TabList. This is a react-stately Item with JSX children. */
children: ItemElement<ReactNode> | Array<ItemElement<ReactNode>>;
/** Array of any disabled Tabs in the grouping. */
disabledTabs?: string[];
/** Called when the user clicks on a different tab */
onChange?: (tab: T) => void;
'data-test-id'?: string;
};
type TabListProps<T extends string | number> = AriaTabListProps<HTMLDivElement> & {
/** The active Tab to show on render. The value passed in here should match the value of the active Tab's Item key. */
activeTab?: T;
/** CSS classes to pass into the TabList wrapper div. */
className?: string;
/** The children passed into the TabList. This is a react-stately Item with JSX children. */
children: ItemElement<ReactNode> | Array<ItemElement<ReactNode>>;
/** Array of any disabled Tabs in the grouping. */
disabledTabs?: string[];
/** Called when the user clicks on a different tab */
onChange?: (tab: T) => void;
'data-test-id'?: string;
};

/** React-aria' useTabListState hook supports a
* selectedKey under the hood for showing
Expand Down

0 comments on commit a477167

Please sign in to comment.