Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!