s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Commerce · Components

InvoiceTotals

Props for InvoiceTotals component

Public export

typescript
import { InvoiceTotals } from '@happyvertical/smrt-commerce/svelte';
Import path
@happyvertical/smrt-commerce/svelte
Props
10
Props described
10 of 10
Bindable state
0
Callback events
0
Verified release
0.44.0

Props

NameTypeRequiredDescription
subtotalnumberYesSubtotal in decimal dollars
taxRatenumberNoTax rate as percentage (e.g., 5 for 5%)
taxAmountnumberNoTax amount in decimal dollars (calculated from rate if not provided)
totalnumberYesTotal in decimal dollars
amountPaidnumberNoAmount already paid in decimal dollars
currency'CAD' | 'USD'NoCurrency code
showTaxbooleanNoShow tax breakdown
showPaidbooleanNoShow payment status
taxLabelstringNoTax label
size'sm' | 'md' | 'lg'NoSize variant

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation