Functions reference
This guide contains a list of functions exported from Mantine packages that are not documented elsewhere.
clamp
The clamp function is exported from @mantine/hooks.
It clamps a number within the inclusive lower and upper bounds.
lowerFirst
The lowerFirst function is exported from @mantine/hooks.
It converts the first character of a string to lowercase.
upperFirst
The upperFirst function is exported from @mantine/hooks.
It converts the first character of a string to uppercase.
randomId
The randomId function is exported from @mantine/hooks.
It generates a random id with the mantine- prefix.
range
The range function is exported from @mantine/hooks.
It generates an array of numbers from start to end (inclusive).
shallowEqual
The shallowEqual function is exported from @mantine/hooks.
It performs a shallow equality check of two objects.