Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

290
Vistas
After Using Material-UI v5 (MUI) i can't see anything on Storybook Docs tab?

I was working on Material UI v4 but after the release of MUI (Material UI V5) I have shifted on that but after shifting I cant see anything on storybook docs page. Canvas tab

Docs tab

Button.js

import styled from "styled-components";

const StyledButton = styled(button)`
  width: ${(props) => props.width};
  font-size: 0.9rem;
  background-color: ${(props) => {
    if (props.color === "primary") {
      return "red";
    }

    return props.bgcolor;
  }} !important;
  color: ${(props) => {
    if (props.color === "primary") {
      return "white";
    }
    return props.color;
  }} !important;
  margin-bottom: 0.5rem !important;
  }
`;

export const Button = (props) => {
  return <StyledButton {...props} />;
};

Button Story


import { Button } from "../component/Button";

export default {
  title: "Utilities/Button",
  component: Button,
};

export const Primary = () => (
  <Button color="primary" variant="contained">
    Primary
  </Button>
);

export const Secondary = () => (
  <Button color="secondary" variant="contained">
    Secondary
  </Button>
);

export const fullwidth = () => (
  <Button variant="contained" color="primary" width="100%">
    Primary
  </Button>
);
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda