Sha256: 76dec0b7ea99312efafe0e975a2bb866938c23205b338590c5a7781f6610ca7c

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:buttons) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer

  indented_grid do
    display 'Buttons'
    
    # Raised buttons
    headline 'Raised Button'
    button 'Button', type: :raised

    subheading 'Disabled'
    button 'Button', type: :raised, disabled: true

    subheading ' Accent colored'
    button 'Button', type: :raised, color: :secondary

    headline 'Flat button'
    button 'Button'

    subheading 'Disabled'
    button 'Button', type: :flat, disabled: true

    subheading 'Accent colored flat'
    button 'Button', type: :flat, color: :secondary

    subheading 'Aligned'
    grid do
      column 3 do
        button 'Not Aligned'
        button 'Right', position: :right
        button 'Left', position: :left
      end
    end

    # Icon Buttons
    headline 'Icon button'
    button icon: :mood
    subheading 'Colored'
    button icon: :mood, color: :primary
    button icon: :mood, color: :secondary

    subheading 'with text'
    button "I'm happy", icon: :mood

    attach :code, file: __FILE__
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
voom-presenters-0.1.8 app/demo/components/buttons.pom
voom-presenters-0.1.7 app/demo/components/buttons.pom
voom-presenters-0.1.6 app/demo/components/buttons.pom
voom-presenters-0.1.5 app/demo/components/buttons.pom
voom-presenters-0.1.4 app/demo/components/buttons.pom
voom-presenters-0.1.3 app/demo/components/buttons.pom
voom-presenters-0.1.2 app/demo/components/buttons.pom
voom-presenters-0.1.1 app/demo/components/buttons.pom
voom-presenters-0.1.0 app/demo/components/buttons.pom