Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

PropsTable is not being rendered when my component is in an external package #253

@itReverie

Description

@itReverie

Bug Report

PropsTable are not being rendered if I use the Button.jsx file on a package (@itreverie/itr-components-basics) but if I use the same code in the Button.jsx file inside the docz project, the table renders correctly.

To Reproduce

  1. Clone the following repo to reproduce the issue.
    itr-components-lib
  2. Go to /itr-components-lib/src/basics/Button.mdx
  3. If you use import { Button } from '@itreverie/itr-components-basics'. It doesn't render the table but
  4. If you use import Button from './Button' It renders the table correctly.
    Note: The repo for the external components can be found in itr-components-basics, it is published in npm.

I would expect that if Button.jsx code is the same in my external package or in the file on my docz package the PropsTable should render. I do not understand why the table is not rendered when I use the Button.jsx on the external package.

propstabledocz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions