Sha256: bfaa056c542435fc1b6d334de9b2497e0a7f3058dae77f254811a475afccdaf0
Contents?: true
Size: 943 Bytes
Versions: 12
Compression:
Stored size: 943 Bytes
Contents
# frozen_string_literal: true module Primer module Beta # @label ButtonGroup class ButtonGroupPreview < ViewComponent::Preview # @label Playground # # @param size [Symbol] select [medium, small] def playground(size: :medium) render(Primer::Beta::ButtonGroup.new(size: size)) do |c| c.button { "Button" } c.button(scheme: :primary) { "Primary" } c.button(scheme: :danger) { "Danger" } c.button(scheme: :outline) { "Outline" } end end # @label Default options # # @param size [Symbol] select [medium, small] def default(size: :medium) render(Primer::Beta::ButtonGroup.new(size: size)) do |c| c.button { "Button" } c.button(scheme: :primary) { "Primary" } c.button(scheme: :danger) { "Danger" } c.button(scheme: :outline) { "Outline" } end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems