docz icon indicating copy to clipboard operation
docz copied to clipboard

Allow splitting props into groups

Open droganov opened this issue 7 years ago • 4 comments

The case: I'm documenting tsx UI lib. In that lib, modules compose other modules, so do props:

export interface Props extends AtomProps {
  fitAll?: boolean;
  fitLeft?: boolean;
  fitRight?: boolean;
}

Docz Props component is actually able to understand extends, but I'd really love to split records visually and document the composition better.

droganov avatar May 24 '19 14:05 droganov

+1

maryiam avatar Aug 29 '19 16:08 maryiam

In the same context, I'm documenting TSX UI lib as well. I have a custom button that extends React.ButtonHTMLAttributes<HTMLButtonElement> props.

Docz props table contains now all props including ButtonHTMLAttributes (263 default HTML Button props like onClick, className, onSubmit..) which is very noisy and doesn't give clear visibility of my custom button props.

I would like to be able at least to separate props or ideally have the possibility to hide the extended props. Is this possible? image

maryiam avatar Sep 27 '19 13:09 maryiam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 26 '19 14:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 25 '20 14:01 stale[bot]