How to Style Badge Corners Based on Position and Center Toolbar Alignment in GrapesJS #5962
Unanswered
fredrickreuben
asked this question in
Q&A
Replies: 2 comments 5 replies
-
To center the toolbar you can add these styles
the rounding of the badge seems more complicated... css-wise its just a |
Beta Was this translation helpful? Give feedback.
4 replies
-
const onToolbarStyleChange = useCallback(() => {
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"First, I would like to style my badge so that when it is positioned at the top, the top-left and top-right corners are rounded. When the badge is positioned at the bottom of the component, the bottom-left and bottom-right corners should be rounded. Additionally, I want to center the toolbar so that it is aligned in the middle. How can I achieve this?"
Beta Was this translation helpful? Give feedback.
All reactions