Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

[Button] currently not accepting className props #140

Open
nshganesh opened this issue Dec 28, 2021 · 0 comments
Open

[Button] currently not accepting className props #140

nshganesh opened this issue Dec 28, 2021 · 0 comments

Comments

@nshganesh
Copy link

className props will help button positioning
To render two buttons on the same line, one ways to approach currently is to wrap it inside a div and attaching required styling

<div className="flex">
   <Button />

   <div className="ml2">
     <Button />
   </div>
</div>

Feels unnecessary to wrap it inside a div for this small requirement. We can avoid the extra element too by passing className prop directly to button

@nshganesh nshganesh assigned nshganesh and unassigned nshganesh Dec 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant