Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-invoice>

@methane-ui/commerce~6.8 KB brotli (kit + Lit)~1.4 KB marginal

Print-friendly structured invoice view with localized Intl.NumberFormat line totals, sanitized brand logo URL, and status badge.

When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.

Live Interactive Preview

Interactive StageLive Custom Element · <mth-invoice> (@methane-ui/commerce)
Ready · interact with <mth-invoice>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/commerce/invoice"></script>
<mth-invoice status="paid" currency="USD"></mth-invoice>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
invoiceNumberinvoice-numberstring""Invoice identifier string.
issueDateissue-datestring""Formatted or ISO issue date.
dueDatedue-datestring""Formatted or ISO payment due date.
statusstatus'paid' | 'pending' | 'overdue' | 'draft'"pending"Payment status: paid, pending, overdue, or draft.
currencycurrencystring"USD"ISO 4217 currency code for Intl.NumberFormat.
localelocalestring""Optional BCP 47 locale override; defaults to UIElement resolvedLocale.
seller—unknown | null—Seller contact and billing address metadata.
buyer—unknown | null—Buyer contact and billing address metadata.
items—ReadonlyArray<unknown>—Invoice line items with description, quantity, and unitPrice.
taxRatetax-ratenumber0Fractional tax rate applied after discount.
discountAmountdiscount-amountnumber0Flat discount subtracted before tax.
notesnotesstring""Optional memo or payment instructions.
logoUrllogo-urlstring""Optional brand logo URL validated via @methane-ui/sanitize.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(paid), :state(overdue).Conformance suite
i18nRoutes 18 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test