Sha256: 29a3190ae9f210d5f7bcf682946c477c69b6ab1011558f25dcdaf86ea3ca3f3c

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

module ComponentsHelper
  def tw(classes)
    TailwindMerge::Merger.new.merge(classes)
  end

  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 "

  module Button
    PRIMARY = " bg-primary text-primary-foreground hover:bg-primary/80 "
    SECONDARY = " bg-secondary text-secondary-foreground hover:bg-secondary/80 "
    OUTLINE = "  border border-input bg-background hover:bg-accent hover:text-accent-foreground "
    GHOST = " hover:bg-accent hover:text-accent-foreground  "
    DESTRUCTIVE = " bg-destructive text-destructive-foreground hover:bg-destructive/90 "
  end

  module Alert
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shadcn-ui-0.0.5 app/helpers/components_helper.rb