Skip to content

ClipboardButton: Pass through props to underlying Button #398

@benlk

Description

@benlk

Is your enhancement related to a problem? Please describe.

I would like to set the variant property on the underlying Button so that it looks like a button instead of a random text string:

Image

Designs

<ClipboardButton
    text={formData}
    variant='primary'
/>

Then pass props to this <Button>:

return (
<Button disabled={disabled} ref={ref}>
{hasCopied ? copied : copy}
</Button>
);

Describe alternatives you've considered

I have also considered reimplementing this component in my project, but it's not that important.

Code of Conduct

  • I agree to follow this project's Code of Conduct

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