@primer/react
Version:
An implementation of GitHub's Primer Design System using React
20 lines (19 loc) • 535 B
TypeScript
import React from "react";
//#region src/ScrollableRegion/ScrollableRegion.d.ts
type Labelled = {
'aria-label': string;
'aria-labelledby'?: never;
} | {
'aria-label'?: never;
'aria-labelledby': string;
};
type ScrollableRegionProps = React.ComponentPropsWithoutRef<'div'> & Labelled;
declare function ScrollableRegion({
'aria-label': label,
'aria-labelledby': labelledby,
children,
className,
...rest
}: ScrollableRegionProps): React.JSX.Element;
//#endregion
export { ScrollableRegion, type ScrollableRegionProps };