doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.6k stars 1.46k forks source link

Hiding extending element typescript props #1627

Open epragalakis opened 3 years ago

epragalakis commented 3 years ago

Question

Description

Is there a way to hide the props of the element I'm extending? In the Docz output I want to be able to see the props I'm defining and not all the props of the HTML element.

Example Component

interface MyProps extends HTMLAttributes<HTMLElement> {
  children: React.ReactNode;
  className?: string;
}

const MyComponent: React.FC<MyProps> = ({children, className}) => {
  return (<div className={className}>{children}</div>);
}

Docz output

Screenshot from 2021-05-11 09-57-41