The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
* | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
* |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
* |___/
*
* This file is generated from the documentation data in packages/twenty-ui/generated.
* To update it, edit the component prop types or design tokens in twenty-ui and run:
* npx nx generate:ui twenty-docs
*/}
<ParamField body="children" type="ReactNode">
Caller-owned trigger content that overrides the selected value display.
</ParamField>
<ParamField body="className" type="string | ((state: PopoverTriggerState) => string | undefined)">
Class applied to the trigger button.
</ParamField>
<ParamField body="closeOnSelect" type="boolean">
Whether committing an enabled option closes the dropdown. Defaults to true. A canceled selection never closes automatically.
</ParamField>
<ParamField body="contentProps" type="Omit<DropdownContentProps, "children">">
Dropdown popup props, including placement, width, and accessible attributes.
</ParamField>
<ParamField body="currencies" type="readonly CurrencyPickerOption[]" required>
Available currencies in display order. Each code is a unique stable identifier; name and optional symbol are caller-owned data. A currency can be disabled.
</ParamField>
<ParamField body="defaultOpen" type="boolean">
Whether the popup is initially open when uncontrolled.
</ParamField>
<ParamField body="defaultValue" type="string | null" default="null">
Initial uncontrolled currency code, or null for an empty selection. Defaults to null.
</ParamField>
<ParamField body="disabled" type="boolean" default="false">
Disables opening, search, and every currency option.
</ParamField>
<ParamField body="getOptionLabel" type="((currency: CurrencyPickerOption) => ReactNode)" default="Name (CODE)">
Returns caller-owned content for a currency option. Defaults to Name (CODE). Display content does not change the search text.
</ParamField>
<ParamField body="getSearchText" type="((currency: CurrencyPickerOption) => string)" default="Name (CODE) and symbol">
Returns searchable text for a currency. Defaults to Name (CODE) and its optional symbol. Search trims the query and matches without case sensitivity.
</ParamField>
<ParamField body="id" type="string">
ID forwarded to the trigger button.
</ParamField>
<ParamField body="nativeButton" type="boolean" default="true">
Whether render composes a native button. Set false for a custom non-button element so Base UI supplies button interaction.
</ParamField>
<ParamField body="onEscapeKeyDown" type="((event: DropdownDismissEvent) => void)">
Called before Escape closes the popup. Call event.preventDefault() to keep it open.
</ParamField>
<ParamField body="onInteractOutside" type="((event: DropdownDismissEvent) => void)">
Called before an outside press or Tab out closes the popup. Call event.preventDefault() to keep it open.
</ParamField>
<ParamField body="onOpenChange" type="((open: boolean) => void)">
Called with the next open state when the popup opens or closes.
</ParamField>
<ParamField body="onValueChange" type="((value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void)">
Called with the next code or null and cancellable Dropdown selection details: event, reason, trigger, cancel and isCanceled. Calling cancel() preserves selection and prevents automatic close. Repeated single selection does not emit a change.
</ParamField>
<ParamField body="open" type="boolean">
Whether the popup is open. Use with onOpenChange to control it.
</ParamField>
<ParamField body="optionsProps" type="CurrencyPickerOptionsProps">
Props for the options wrapper div, listLabel, and search behavior. Native input customization belongs in optionsProps.searchProps.
</ParamField>
<ParamField body="placeholder" type="ReactNode">
Trigger content displayed when the selected value is null.
</ParamField>
<ParamField body="ref" type="Ref<HTMLButtonElement>">
Ref to the trigger button, or the element composed through render.
</ParamField>
<ParamField body="render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, PopoverTriggerState>">
Replaces the native trigger button. Forward the supplied props and ref when rendering a custom component.
</ParamField>
<ParamField body="renderValue" type="((state: CurrencyPickerState) => ReactNode)">
Returns selected trigger content from { value, selectedCurrency, disabled }. The default display is the raw code, or the trigger placeholder when null. Trigger children override it.
</ParamField>
<ParamField body="selectedFirst" type="boolean" default="false">
Moves the matching selected currency before other results. Defaults to false, preserving catalogue order.
</ParamField>
<ParamField body="style" type="CSSProperties | ((state: PopoverTriggerState) => CSSProperties | undefined)">
Inline styles applied to the trigger button.
</ParamField>
<ParamField body="triggerProps" type="CurrencyPickerTriggerProps">
Props for the trigger button, including native attributes, ref, render, placeholder, and caller-owned children. These override shorthand trigger props.
</ParamField>
<ParamField body="value" type="string | null">
Controlled currency code or null for an empty selection. Undefined leaves selection uncontrolled. Empty and unknown strings remain identifiers.
</ParamField>
### CurrencyPicker.Root
<ParamField body="Root.children" type="ReactNode | ((state: CurrencyPickerState) => ReactNode)" required>
Picker parts and supporting content, or a render function receiving { value, selectedCurrency, disabled }. Root owns selection and prepared data without adding a DOM element.
</ParamField>
<ParamField body="Root.closeOnSelect" type="boolean">
Whether committing an enabled option closes the dropdown. Defaults to true. A canceled selection never closes automatically.
</ParamField>
<ParamField body="Root.currencies" type="readonly CurrencyPickerOption[]" required>
Available currencies in display order. Each code is a unique stable identifier; name and optional symbol are caller-owned data. A currency can be disabled.
</ParamField>
<ParamField body="Root.defaultValue" type="string | null" default="null">
Initial uncontrolled currency code, or null for an empty selection. Defaults to null.
</ParamField>
<ParamField body="Root.disabled" type="boolean" default="false">
Disables the trigger, search input, and every currency option.
</ParamField>
<ParamField body="Root.getOptionLabel" type="((currency: CurrencyPickerOption) => ReactNode)" default="Name (CODE)">
Returns caller-owned content for a currency option. Defaults to Name (CODE). Display content does not change the search text.
</ParamField>
<ParamField body="Root.getSearchText" type="((currency: CurrencyPickerOption) => string)" default="Name (CODE) and symbol">
Returns searchable text for a currency. Defaults to Name (CODE) and its optional symbol. Search trims the query and matches without case sensitivity.
</ParamField>
<ParamField body="Root.onValueChange" type="((value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void)">
Called with the next code or null and cancellable Dropdown selection details: event, reason, trigger, cancel and isCanceled. Calling cancel() preserves selection and prevents automatic close. Repeated single selection does not emit a change.
</ParamField>
<ParamField body="Root.renderValue" type="((state: CurrencyPickerState) => ReactNode)">
Returns selected trigger content from { value, selectedCurrency, disabled }. The default display is the raw code, or the trigger placeholder when null. Trigger children override it.
</ParamField>
<ParamField body="Root.selectedFirst" type="boolean" default="false">
Moves the matching selected currency before other results. Defaults to false, preserving catalogue order.
</ParamField>
<ParamField body="Root.value" type="string | null">
Controlled currency code or null for an empty selection. Undefined leaves selection uncontrolled. Empty and unknown strings remain identifiers.
</ParamField>
### CurrencyPicker.Trigger
<ParamField body="Trigger.children" type="ReactNode">
Caller-owned trigger content that overrides the selected value display.
</ParamField>
<ParamField body="Trigger.className" type="string | ((state: PopoverTriggerState) => string | undefined)">
Class applied to the trigger button.
</ParamField>
<ParamField body="Trigger.disabled" type="boolean" default="false">
Additionally disables the native trigger button. Root disabled state always takes precedence.
</ParamField>
<ParamField body="Trigger.id" type="string">
ID forwarded to the trigger button.
</ParamField>
<ParamField body="Trigger.nativeButton" type="boolean" default="true">
Whether render composes a native button. Set false for a custom non-button element so Base UI supplies button interaction.
</ParamField>
<ParamField body="Trigger.placeholder" type="ReactNode">
Trigger content displayed when the selected value is null.
</ParamField>
<ParamField body="Trigger.ref" type="Ref<HTMLButtonElement>">
Ref to the trigger button, or the element composed through render.
</ParamField>
<ParamField body="Trigger.render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, PopoverTriggerState>">
Replaces the native trigger button. Forward the supplied props and ref when rendering a custom component.
</ParamField>
<ParamField body="Trigger.style" type="CSSProperties | ((state: PopoverTriggerState) => CSSProperties | undefined)">
Inline styles applied to the trigger button.
</ParamField>
### CurrencyPicker.Options
<ParamField body="Options.className" type="string">
Class applied to the options wrapper div.
</ParamField>
<ParamField body="Options.disabled" type="boolean" default="false">
Additionally disables search and every currency option. Root disabled state always takes precedence.
</ParamField>
<ParamField body="Options.emptyLabel" type="ReactNode" default="No results">
Content announced when no currencies match. Defaults to No results.
</ParamField>
<ParamField body="Options.listLabel" type="string">
Accessible name for the selection listbox. Defaults to the registered Dropdown title or trigger name. Native accessible attributes on Options target only its wrapper.
</ParamField>
<ParamField body="Options.ref" type="Ref<HTMLDivElement>">
Ref to the options wrapper div, or the element composed through render.
</ParamField>
<ParamField body="Options.render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>">
Replaces the non-interactive wrapper div. Forward the supplied props and ref when rendering a custom component. Use searchProps.render to customize the input.
</ParamField>
<ParamField body="Options.searchable" type="boolean" default="true">
Renders a search input above the options. Defaults to true.
</ParamField>
<ParamField body="Options.searchLabel" type="string" default="Search">
Search placeholder and accessible name. Defaults to Search.
</ParamField>
<ParamField body="Options.searchProps" type="DropdownSearchProps">
Native input attributes, ref, render, and controlled or uncontrolled query props forwarded to Dropdown.Search. Use value with onValueChange or defaultValue.
</ParamField>
<ParamField body="Options.style" type="CSSProperties">
Inline styles applied to the options wrapper div.
</ParamField>