Sha256: 90a20ed2b42147ec363225d2ce5744eea55eb2e3c1ad834b41df3da6b582f7a3
Contents?: true
Size: 424 Bytes
Versions: 7
Compression:
Stored size: 424 Bytes
Contents
module Components::ToastHelper def render_toast(header: nil, description: nil, action: nil, class: nil, data: {}, variant: :default, **options, &block) options[:class] ||= "" options[:class] << " destructive group border-destructive bg-destructive text-destructive-foreground " if variant == :destructive render "components/ui/toast", header:, description:, action:, class:, data:, options: options end end
Version data entries
7 entries across 7 versions & 1 rubygems