Class: Irelia::Flex::Component

Inherits:
Component
  • Object
show all
Includes:
Options::Fixed, Options::Flex::Direction, Options::Flex::Gap, Options::Flex::Grow, Options::Flex::Items, Options::Flex::Justify, Options::Padding, Options::TextFormatting, Options::Width
Defined in:
app/components/irelia/flex/component.rb

Instance Method Summary collapse

Methods included from Options::Flex::Items

included

Methods included from Options::Flex::Grow

included

Methods included from Options::Flex::Gap

included

Methods included from Options::Flex::Direction

included

Methods included from Options::Flex::Justify

included

Methods included from Options::Fixed

included

Methods included from Options::Width

included

Methods included from Options::TextFormatting

included

Methods included from Options::Padding

included

Methods inherited from Component

#add_css_classes, after_initialize, #html_options, inherited, #initialize, run_after_initialize_hooks

Constructor Details

This class inherits a constructor from Irelia::Component

Instance Method Details

#variantsObject



15
16
17
18
19
20
# File 'app/components/irelia/flex/component.rb', line 15

def variants
  class_names(
    "irelia-flex",
    "irelia-flex--default": variant == :default,
  )
end