Answers for "material ui styled function"

0

material ui styled component

const MyStyledButton = styled(Button)`
  background-color: red;
  color: white;
`;

export default function App() {
  return (
    <StylesProvider injectFirst>
      <div className="App">
        <MyStyledButton color="primary">Foo</MyStyledButton>
      </div>
    </StylesProvider>
  );
}
Posted by: Guest on December-01-2021
0

material ui styled function

styled(Component, [options])(styles) => Component

Component: The component that will be wrapped.
options (object [optional]):
options.shouldForwardProp ((prop: string) => bool [optional]): Indicates whether the prop should be
Posted by: Guest on February-02-2022

Browse Popular Code Answers by Language