Provides transaction type badge components for the billing system.
Supports payment and refund types with appropriate color coding. Follows daisyUI badge styling conventions.
Summary
Functions
Renders a transaction type badge with appropriate styling.
Functions
Renders a transaction type badge with appropriate styling.
Attributes
type- Transaction type string: "payment" or "refund" (required)size- Badge size: :xs, :sm, :md, :lg (default: :sm)class- Additional CSS classes
Supported Types
payment- Positive transaction (success/green)refund- Negative transaction (error/red)
Examples
<.transaction_type_badge type="payment" />
<.transaction_type_badge type="refund" size={:md} />Attributes
type(:string) (required)size(:atom) - Defaults to:sm. Must be one of:xs,:sm,:md, or:lg.class(:string) - Defaults to"".