Components
Kind: element (inline) · Session key: productTaxCodePicker · React: <FinBazeProductTaxCodePicker />
Create the session#
mutation {
createEmbedSession(input: {
companyId: "…"
user: { externalUserId: "…" }
components: { productTaxCodePicker: { enabled: true } }
}) { clientSecret }
}
Requirements#
The company must have these features effective: products. A hidden feature makes createEmbedSession fail with FEATURE_DISABLED.
Component features#
None.
Options#
Passed to instance.create("product-tax-code-picker", options) or as props.
| Option | Type | |
|---|---|---|
value | string | The product chosen at first. |
country | string | The country whose tax code is reported. Defaults to the company's. |
label | string | The field label. |
disabled | boolean | Show the field but do not allow changes. |
Every component also takes appearance and navigation ("internal" or "external").
Events#
| Event | React prop |
|---|---|
ready | onReady |
navigate | onNavigate |
error | onError |
change | onChange |
Use it#
import { FinBazeProductTaxCodePicker } from "@finbaze/embed-react";
<FinBazeProductTaxCodePicker />
const component = instance.create("product-tax-code-picker");
component.mount("#finbaze");