@ouroboros/react-hooks
Version:
Common hooks used with React
25 lines (24 loc) • 489 B
TypeScript
/**
* Size
*
* Exports useSize which relies on the browser/size module
*
* @author Chris Nasr <chris@ouroboroscoding.com>
* @copyright DevMedika Inc.
* @created 2024-09-20
*/
/**
* Use Size
*
* React hook that returns the current size of the client width in terms:
* xs (extra small)
* sm (small)
* md (medium)
* lg (large)
* xl (extra large)
*
* @name useSize
* @access public
* @returns 'xs' | 'sm' | 'md' | 'lg' | 'xl'
*/
export default function useSize(): string;