Questions tagged [usestyles]

4 questions
2
votes
0 answers

How to pass parameter to makeStyles in @fluentui/react-components

I am trying Fluent UI React V9, and try to pass the color style from function component to makeStyles. Here is my codesandbox: import { Button, ButtonProps, makeStyles } from "@fluentui/react-components"; import * as React from 'react'; const…
Edward
  • 28,296
  • 11
  • 76
  • 121
2
votes
1 answer

material ui usestyles deprecated - do i need to change code

I'm a bit confused on material ui v5.5.2 on how to useStyles(). This website says deprecated but if so how do you still use this? https://mui.com/styles/basics/ ⚠️ @mui/styles is the legacy styling solution for MUI. It depends on JSS as a styling…
solarissf
  • 1,199
  • 2
  • 23
  • 58
0
votes
1 answer

Can I achieve css rectangle shapes without width and height property

I have a image icon inside a image container. The image container width and image position is varying in different pc and os. How to achieve this. My image container below liveContainer: { width: "45%", height: "20%", top: "45px", …
0
votes
1 answer

just declaring useStyles in a Mui-React wrapper component, produces strange behaviors

I'm using mui makeStyles in all my components. But when I try to use it in a wrapper component, I get undesired behavior The code that I'm using is this: import Box from '@mui/material/Box'; import React from 'react'; import NavBar from…
Rafael
  • 2,413
  • 4
  • 32
  • 54