Sha256: b1e9b4ea083415a9e8d9a4cac6dbf63474085b69c23e8ede108f2c03f0bb379c

Contents?: true

Size: 196 Bytes

Versions: 11

Compression:

Stored size: 196 Bytes

Contents

module Components::ToggleHelper
  def render_toggle(label = nil, **options, &block)
    content = label || capture(&block)
    render "components/ui/toggle", content: content, **options
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.14 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.13 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.12 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.10 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.8 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.5 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.4 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.3 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.2 app/helpers/components/toggle_helper.rb
shadcn-ui-0.0.1 app/helpers/components/toggle_helper.rb