Sha256: a7740ae570e667c435b5c0cc54ed0ec472e90ce806f959bafe6a70430f632c4f

Contents?: true

Size: 1.35 KB

Versions: 12

Compression:

Stored size: 1.35 KB

Contents

require_relative '../helpers/indented_grid'

Coprl::Presenters.define(:buttons) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer
  page_title 'Buttons'

  indented_grid do

    
    # 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

    headline 'Image button'
    button type: :image do
      image 'img/demo/grace-hopper-wide.png'
    end

    subheading 'with icon'
    button type: :image do
      image 'img/demo/grace-hopper-wide.png'
      icon :link
    end

    attach :code, file: __FILE__
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/components/buttons.pom
coprl-3.0.0.beta.11 app/demo/components/buttons.pom
coprl-3.0.0.beta.10 app/demo/components/buttons.pom
coprl-3.0.0.beta.9 app/demo/components/buttons.pom
coprl-3.0.0.beta.8 app/demo/components/buttons.pom
coprl-3.0.0.beta.7 app/demo/components/buttons.pom
coprl-3.0.0.beta.6 app/demo/components/buttons.pom
coprl-3.0.0.beta.5 app/demo/components/buttons.pom
coprl-3.0.0.beta.4 app/demo/components/buttons.pom
coprl-3.0.0.beta.3 app/demo/components/buttons.pom
coprl-3.0.0.beta.2 app/demo/components/buttons.pom
coprl-3.0.0.beta.1 app/demo/components/buttons.pom