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

157
Vistas
Storybook-js. Options doesn't display in docs tab

For example i have some working select component. It's displays fine in Canvas tab of storybook but in Docs tab it's doesn't display the options

// some-select-component.stories.tsx

const options = [
    {
        id: 1,
        name: 'option 1',
    },
    {
        id: 2,
        name: 'option 2',
    },
    {
        id: 3,
        name: 'option 3',
    },
];

const Template: ComponentStory<typeof SomeSelectComponent> = args => {
    const [formikValue, setFormikValue] = useState({});

    return (
        <Formik initialValues={{} as any} onSubmit={setFormikValue} >
            <SomeSelectComponent name='name'>
                {options.map((option => (
                    <Option
                        key={option.id}
                        value={option.name}
                    >
                        {option.name}
                    </Option>
                )))}
            </SomeSelectComponent >
        </Formik>
    )
}

export const SimpleSelect = Template.bind({});

// docs.mdx file 

<Story id='some-select-component--simple-select' />

how should i handle this case? didn't find this kind of issues

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you had strict root for portal - fix it. difine the root block for rendering through the props, because, probably, your block for portal rendering wont be displayed in docs-root

about 4 years ago · Santiago Trujillo Denunciar
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