We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
All buttons are not showing because the text is not passed, can be passed as children.
ButtonGroup
<section className="button-group"> {secondaryButtons.map((button) => ( <Button key={button.text + button.onClick.toString()} onClick={button.onClick} buttonType="secondary" > {button.text} </Button> ))} </section>
export default function Button({ onClick, buttonType, children }) { return ( <button onClick={onClick} className={`btn ${buttonType === "secondary" && "btn--secondary"}`} > {children} </button> ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
All buttons are not showing because the text is not passed, can be passed as children.
ButtonGroup
The text was updated successfully, but these errors were encountered: