app/components/coco/app/elements/button/button.rb in coveragebook_components-0.5.6 vs app/components/coco/app/elements/button/button.rb in coveragebook_components-0.5.7
- old
+ new
@@ -20,17 +20,21 @@
"warning",
"text-warning",
"info",
"text-info",
"toolbar",
+ "toolbar-floating",
"text-toolbar",
"neutral-dark",
"neutral-light",
"blank",
nil
]
DEFAULT_THEME = "primary"
+
+ accepts_option :size, from: SIZES, default: :md
+ accepts_option :theme, from: THEMES, default: DEFAULT_THEME
renders_one :dropdown, types: {
content: ->(&block) { block.call },
confirmation: ->(**kwargs) do