Allow to display a label on <wa-divider> #2802
patrickvuarnoz
started this conversation in
Ideas & Suggestions
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In some situations it would be helpful to display something like this:
The
<wa-divider>would be a very good candidate for this. A natural way this could be used would be:A label could by default be centered and have the same color as the divider itself. The text would go into the default slot.
Potential useful properties might be the alignment of the label – left (with offset), center, right (with offset) – and the orientation. For horizontal dividers the orientation would not be so relevant, but for vertical dividers it might be. But for me personally an orientation along the divider direction would be sufficient.
All reactions