New Button Types #641
muratcorlu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently our Baklava Button has only
submit
type to submit parent form. I was reading a nice blog post that suggests new kind of button types to solve some common tasks declaratively. https://adactio.com/journal/20259I think this is a nice idea and we don't need to wait W3C to accept new types to the standard to using this approach. Especially the ones that doesn't generally need extra parameters. For example:
<bl-button type="share">
Triggers the native share api for current page<bl-button type="fullscreen">
Makes current document fullscreen<bl-button type="print">
Triggers browser print for current page<bl-button type="back">
Triggers browser back<bl-button type="forward">
Triggers browser forward<bl-button type="refresh">
Refreshes the current pageWhat do you think about adding that kind of new types to our Button component?
Beta Was this translation helpful? Give feedback.
All reactions