Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional Description #6

Closed
chogland opened this issue Oct 6, 2022 · 3 comments
Closed

Optional Description #6

chogland opened this issue Oct 6, 2022 · 3 comments

Comments

@chogland
Copy link

chogland commented Oct 6, 2022

I would like to add an optional description so that I can define a description for a component and not have it redundantly placed on both/either tab's MDX.

I have a branch locally ready with this update but it denied access to push up a branch in order to create a pull request.

Thanks,

  • Charlie
@chogland
Copy link
Author

chogland commented Oct 6, 2022

Something like this:
export default function Header(props: { title: string; description: string; additionalElement?: Node; }) { return ( <div className="storybook_header_container"> <div className="storybook_header"> <h1>{props.title}</h1> {props.description ? <p>{props.description}</p> : null} {props.additionalElement} </div> </div> ); }

@cliedelt
Copy link
Owner

Sounds awesome. I dont know why you get a denied access.. Make sure to fork the repo and then do a pull request... I could not find a fork in your account of this repo.

@chogland
Copy link
Author

@cliedelt I have submitted a pull request. Please let me know if that will do the trick :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants