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

Commerce · Components

InvoiceLineItems

Props for InvoiceLineItems component

Public export

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

Props

NameTypeRequiredDescription
itemsLineItem[]YesLine items to display
editablebooleanNoEnable editing mode
currency'CAD' | 'USD'NoCurrency code
onupdate(id: string, item: Partial<LineItem>) => voidNoCalled when item is updated
ondelete(id: string) => voidNoCalled when item is deleted
onadd() => voidNoCalled when add button is clicked
showSourcebooleanNoShow source type column
emptyMessagestringNoEmpty state message

Bindable state

This component has no bindable public state.

Callback events

  • onupdate(id: string, item: Partial<LineItem>) => void
  • ondelete(id: string) => void
  • onadd() => void

Examples and explanation