Module: NfgUi::Components::Traits
- Included in:
- Utilities::Traitable
- Defined in:
- lib/nfg_ui/components/traits.rb,
lib/nfg_ui/components/traits/nav.rb,
lib/nfg_ui/components/traits/card.rb,
lib/nfg_ui/components/traits/icon.rb,
lib/nfg_ui/components/traits/pill.rb,
lib/nfg_ui/components/traits/size.rb,
lib/nfg_ui/components/traits/step.rb,
lib/nfg_ui/components/traits/alert.rb,
lib/nfg_ui/components/traits/modal.rb,
lib/nfg_ui/components/traits/muted.rb,
lib/nfg_ui/components/traits/slats.rb,
lib/nfg_ui/components/traits/table.rb,
lib/nfg_ui/components/traits/theme.rb,
lib/nfg_ui/components/traits/active.rb,
lib/nfg_ui/components/traits/button.rb,
lib/nfg_ui/components/traits/navbar.rb,
lib/nfg_ui/components/traits/remote.rb,
lib/nfg_ui/components/traits/disable.rb,
lib/nfg_ui/components/traits/dismiss.rb,
lib/nfg_ui/components/traits/collapse.rb,
lib/nfg_ui/components/traits/nav_item.rb,
lib/nfg_ui/components/traits/typeface.rb,
lib/nfg_ui/components/traits/vertical.rb,
lib/nfg_ui/components/traits/alignment.rb,
lib/nfg_ui/components/traits/slat_item.rb,
lib/nfg_ui/components/traits/list_group.rb,
lib/nfg_ui/components/traits/responsive.rb,
lib/nfg_ui/components/traits/page_header.rb,
lib/nfg_ui/components/traits/button_group.rb,
lib/nfg_ui/components/traits/disable_with.rb,
lib/nfg_ui/components/traits/progress_bar.rb,
lib/nfg_ui/components/traits/dropdown_toggle.rb
Overview
Centralizes traits for design system components Trait modules must have the same name as the component they represent.
Defined Under Namespace
Modules: Active, Alert, Alignment, Button, ButtonGroup, Card, Collapse, Disable, DisableWith, Dismiss, DropdownToggle, Icon, ListGroup, Modal, Muted, Nav, NavItem, Navbar, PageHeader, Pill, ProgressBar, Remote, Responsive, Size, SlatItem, Slats, Step, Table, Theme, Typeface, Vertical
Constant Summary collapse
- TRAIT_MODULES =
i[Active Alert Alignment Button ButtonGroup Card Collapse Disable DisableWith Dismiss DropdownToggle Icon ListGroup Modal Muted Nav NavItem PageHeader Pill ProgressBar Remote Responsive Size Step Slats SlatItem Table Theme Typeface Vertical].freeze
- REGISTERED_TRAITS =
TRAIT_MODULES.collect { |trait| "NfgUi::Components::Traits::#{trait}::TRAITS".constantize }.reject(&:empty?).flatten