Hiyve Components - v1.0.0
Preparing search index...
@hiyve/utilities
@hiyve/utilities
getGridColumns
Function getGridColumns
getGridColumns
(
count
:
number
)
:
number
Calculate the optimal number of grid columns based on participant count.
Thresholds:
1 → 1 column
2 → 2 columns
3-4 → 2 columns
5-6 → 3 columns
7-9 → 3 columns
10-12 → 4 columns
13+ → √n (rounded up)
Parameters
count
:
number
Returns
number
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Hiyve Components - v1.0.0
Loading...
Calculate the optimal number of grid columns based on participant count.
Thresholds: