Module: NfgUi::Components::Traits::Size
- Included in:
- Elements::Avatar, Elements::Button, Elements::DropdownToggle, Elements::SlatItem, Elements::Table, Foundations::Illustration, Patterns::ButtonGroup, Patterns::Modal, Patterns::Progress, Patterns::Slats
- Defined in:
- lib/nfg_ui/components/traits/size.rb
Overview
Shared Size traits
Constant Summary collapse
- TRAITS =
%i[sm md lg xl].freeze
Instance Method Summary collapse
Instance Method Details
#lg_trait ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/components/traits/size.rb', line 8 def lg_trait [:size] = :lg end |
#md_trait ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/components/traits/size.rb', line 12 def md_trait [:size] = :md end |
#sm_trait ⇒ Object
16 17 18 |
# File 'lib/nfg_ui/components/traits/size.rb', line 16 def sm_trait [:size] = :sm end |
#xl_trait ⇒ Object
20 21 22 |
# File 'lib/nfg_ui/components/traits/size.rb', line 20 def xl_trait [:size] = :xl end |