Module: ComponentsHelper
- Included in:
- Shadcn::SelectComponent
- Defined in:
- app/helpers/components_helper.rb
Defined Under Namespace
Constant Summary collapse
- PRIMARY_CLASSES =
" bg-primary text-primary-foreground hover:bg-primary/80 "
- SECONDARY_CLASSES =
" bg-secondary text-secondary-foreground hover:bg-secondary/80 "
- OUTLINE_CLASSES =
" border border-input bg-background hover:bg-accent hover:text-accent-foreground "
- GHOST_CLASSES =
" hover:bg-accent hover:text-accent-foreground "
- DESTRUCTIVE_CLASSES =
" bg-destructive text-destructive-foreground hover:bg-destructive/90 "
Instance Method Summary collapse
Instance Method Details
#tw(*classes) ⇒ Object
4 5 6 |
# File 'app/helpers/components_helper.rb', line 4 def tw(*classes) TailwindMerge::Merger.new.merge(classes.join(" ")) end |