Logo

dev-resources.site

for different kinds of informations.

Mantine simple responsive component attribute

Published at
6/29/2023
Categories
frontend
ui
mantine
react
Author
jeekwar
Categories
4 categories in total
frontend
open
ui
open
mantine
open
react
open
Author
7 person written this
jeekwar
open
Mantine simple responsive component attribute

Hello there, i want to share how to write an attribute with simple responsive using mantine.

simple responsive attribute component support breakpoint property (xs, sm, md, lg, xl), using simple responsive attribute component is by creating an object.

here's the example:

<Text fz={{ base: 32, lg: 48 }} weight={600}> Lorem ipsum dolor </Text>
Enter fullscreen mode Exit fullscreen mode

Following the above there is an attribute called fz that represent font size, each of the breakpoint property active when the width of the viewport is met, property base is use when another property breakpoints (xs, sm, md, lg, xl) are not met.

Now, you can easily set responsive component in mantine.

Featured ones: