-
Notifications
You must be signed in to change notification settings - Fork 9
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(Reactions): add addButtonPlacement
property
#215
feat(Reactions): add addButtonPlacement
property
#215
Conversation
Preview is ready. |
* | ||
* @default 'right' | ||
*/ | ||
addButtonPosition?: 'left' | 'right' | 'none'; |
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.
Let's separate hiding and placement, also we use logical values (start/end) instead of physical ones (left/right)
addButtonPosition?: 'left' | 'right' | 'none'; | |
addButtonPlacement?: 'start' | 'end'; |
none
value is the same as readOnly
, isn't it?
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.
- Turned
left/right
tostart/end
- Moved
none
to a separate propertyhideAddButton
none
value is the same asreadOnly
, isn't it?
Not quite. You can still toggle reactions, it's just the button that hides
@amje ping |
addButtonPlacement
property
Added a property (addButtonPosition) for placing the "Add reaction" button:
The default (
right
) stays the same