Module: NfgUi::Components::Traits::Alignment
- Included in:
- Elements::Nav, Foundations::Icon, Patterns::DropdownMenu, Patterns::NavbarNav
- Defined in:
- lib/nfg_ui/components/traits/alignment.rb
Overview
Access to pre-designed Card traits
Constant Summary collapse
- TRAITS =
%i[center right left].freeze
Instance Method Summary collapse
Instance Method Details
#center_trait ⇒ Object
20 21 22 |
# File 'lib/nfg_ui/components/traits/alignment.rb', line 20 def center_trait [:center] = true end |
#left_trait ⇒ Object
16 17 18 |
# File 'lib/nfg_ui/components/traits/alignment.rb', line 16 def left_trait [:right] = true end |
#right_trait ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/components/traits/alignment.rb', line 12 def right_trait [:right] = true end |