-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add position option #118
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit cf70e30:
|
Hey @hyoban Thanks for the PR! 🙌 Does overriding |
Yes, I'm using this method now, it works. But with tailwind, it will be more convenient if you can pass the classname. |
What sort of CSS overrides do you need? Trying to understand the use case better. We'd want to limit the customizability via new class names. Also, I am not sure if supplying the same |
The main thing is the location and size. Maybe it would be more convenient to drag and zoom as we need.
Yeah I just realized that. Provide two different |
Got it! I think, for now, we'd want to limit overriding the class names. Could you please work with the ones that we provide out of the box instead of accepting them as props? For the current PR, could you please update it to only include |
left: position.includes('left') ? '0.2rem' : 'unset', | ||
right: position.includes('right') ? '0.2rem' : 'unset', | ||
top: position.includes('top') ? '0.2rem' : 'unset', | ||
bottom: position.includes('bottom') ? '0.2rem' : 'unset', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests for this? Could be as simple as checking for these positions based on the prop
Could you also update the |
@arjunvegda Updated |
I'll release this shortly! Thanks again for your contribution! |
hello, when will this feature be released? |
Thanks for your patience, this change has been released as part of |
This helps us customize the style