Device
The Device section provides utilities for accessing the dimensions of the window, allowing you to dynamically respond to changes in window size within your application.
Window Width (X
)
Access the current width of the window.
Window Height (Y
)
Access the current height of the window.
Size Classification (size
)
The current size classification of the window ('xs', 'sm', 'md', 'lg', 'xl').
Is Mobile (mobile
)
Indicates if the device is considered mobile based on the width. If the classification includes ('xs', 'sm', 'md')
Is Specified Classification (is
)
A function to check if the current size matches the specified classification. Takes a size classification ('xs', 'sm', 'md', 'lg', 'xl') as an argument.
Update Classifications
Pass an object with updated values.