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

Commerce · Components

PurchaseSourceSelector

Native source discovery; choosing a source never records a purchase or award.

Public export

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

Props

NameTypeRequiredDescription
sourcesPurchaseSourceOption[]YesAuthorized source options with caller-owned availability and labels.
valuestringNoSelected source ID retained after a failed action.
actionstringYesNative source-selection endpoint.
namestringNoField name expected by the caller's route.
hiddenFields{ name: string; value: string; }[]NoCaller-owned search/context fields.
disabledbooleanNoPresentation-only disabled capability.
errorstringNoOptional field validation error.
labelstringNoOptional localized field label.
onsubmitHTMLFormAttributes['onsubmit']NoOptional caller enhancement; native GET remains enabled by default.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation