@wordpress/components
Version:
UI components for WordPress.
17 lines (15 loc) • 313 B
text/typescript
export type ScrollableDirection = 'x' | 'y' | 'auto';
export type Props = {
/**
* Renders a scrollbar for a specific axis when content overflows.
*
* @default 'y'
*/
scrollDirection?: ScrollableDirection;
/**
* Enables (CSS) smooth scrolling.
*
* @default false
*/
smoothScroll?: boolean;
};