Home > mui-country-code-selector > CCSelectorCompositeProps
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the props of the CountryCodeSelectorComposite
components.
Signature:
interface CCSelectorCompositeProps
Property |
Modifiers |
Type |
Description |
---|---|---|---|
string |
(ALPHA) (Optional) Label for the country code selector input element. | ||
string |
(ALPHA) (Optional) A default phone number value. Provide this if you wish to set the default value when using the component as an uncontrolled component. | ||
number |
(ALPHA) (Optional) Defines how long the error message is displayed in seconds. | ||
‘none’ | ‘message’ | ‘status’ | ‘both’ |
(ALPHA) (Optional) Determines how the error message is displayed. When set to | ||
Partial<FormHelperTextProps> | Record<string, never> |
(ALPHA) (Optional) Props applied to the FormHelperText component of the composite country code selector component (a possible error message). See https://mui.com/material-ui/api/form-helper-text/ for more information about the MUI’s FormHelperText’s API. | ||
(ALPHA) (Optional) Sets the breakpoint size props of the error message components grid item, when the country code components are wrapped in a MUI Grid or MUI Grid2. Accepts an object with keys for MUI’s responsive breakpoints (xs, sm, md, lg, and xl), and the values can be either a number, a string ‘auto’ or a boolean. If the value for a breakpoint is false the prop is ignored. See https://mui.com/material-ui/api/grid/#props (e.g., https://mui.com/material-ui/api/grid/#grid-prop-xs) for more information about the MUI Grid props, and https://mui.com/material-ui/customization/breakpoints/ for more information about MUI’s responsive breakpoints. | |||
(options: CountryType[], state: FilterOptionsState<CountryType>) => CountryType[] |
(ALPHA) (Optional) Custom options for setting how the select options are filtered based on the input. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-filterOptions and https://mui.com/material-ui/react-autocomplete/#custom-filter for more information about custom filtering. | ||
Partial<FormGroupProps> |
(ALPHA) (Optional) Props passed to the MUI FormGroup component if the country code components are wrapped in one. | ||
(ALPHA) (Optional) Props passed to the MUI Grid2 container component if the country code components are wrapped in one. | |||
(ALPHA) (Optional) Props passed to the MUI Grid2 item component that the error message component is wrapped in, if the country code components are wrapped in a Grid2. Overwrites the | |||
(ALPHA) (Optional) Props passed to the MUI Grid2 item component that the phone number input component is wrapped in, if the country code components are wrapped in a Grid2. Overwrites the | |||
(ALPHA) (Optional) Props passed to the MUI Grid2 item components if the country code components are wrapped in such. Is overwritten by | |||
(ALPHA) (Optional) Props passed to the MUI Grid2 item component that the selector component is wrapped in, if the country code components are wrapped in a Grid2. Overwrites the | |||
(ALPHA) (Optional) Props passed to the MUI Grid container component if the country code components are wrapped in one. | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the error message component is wrapped in, if the country code components are wrapped in a Grid. Overwrites the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the phone number input component is wrapped in, if the country code components are wrapped in a Grid. Overwrites the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item components if the country code components are wrapped in such. Is overwritten by | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the selector component is wrapped in, if the country code components are wrapped in a Grid. Overwrites the | |||
string |
(ALPHA) (Optional) The global HTML | ||
Partial<Omit<TextFieldProps, ‘onChange’ | ‘select’ | ‘SelectProps’ | ‘value’>> | Record<string, never> |
(ALPHA) (Optional) Props applied to the underlying TextField component (the phone number input). See https://mui.com/material-ui/api/text-field/ for more information about the MUI’s TextField’s API. | ||
MutableRefObject<HTMLInputElement | null> | RefCallback<HTMLInputElement | null> |
(ALPHA) (Optional) A React ref that will be set to point to the phone number input element. Provide this to access the component’s value when using the component as an uncontrolled component. | ||
MutableRefObject<number> |
(ALPHA) (Optional) Passes a numeric React ref object to the phone number input component, which is then increased by one every time the component is rendered. | ||
(ALPHA) (Optional) Sets the breakpoint size props of the phone number input components grid item, when the country code components are wrapped in a MUI Grid or MUI Grid2. Accepts an object with keys for MUI’s responsive breakpoints (xs, sm, md, lg, and xl), and the values can be either a number, a string ‘auto’ or a boolean. If the value for a breakpoint is false the prop is ignored. See https://mui.com/material-ui/api/grid/#props (e.g., https://mui.com/material-ui/api/grid/#grid-prop-xs) for more information about the MUI Grid props, and https://mui.com/material-ui/customization/breakpoints/ for more information about MUI’s responsive breakpoints. | |||
(ALPHA) (Optional) Defines what kind of layout components the subcomponents of a composite component are wrapped in. Accepts the following values: | |||
string |
(ALPHA) (Optional) An HTML | ||
(e: { target: { value: string; }; }) => void |
(ALPHA) (Optional) Phone number input’s change event handler. Sets the | ||
(error: string) => void |
(ALPHA) (Optional) Passes a custom function for handling errors. The function receives the error message as a parameter. | ||
string |
(ALPHA) (Optional) Label for the phone number input element. | ||
Partial<CCSelectorProps> | Record<string, never> |
(ALPHA) (Optional) Props applied to the underlying CountryCodeSelector element. See https://mui.com/material-ui/api/autocomplete/ for more information about MUI’s Autocomplete’s API. | ||
MutableRefObject<number> |
(ALPHA) (Optional) Passes a numeric React ref object to the selector component, which is then increased by one every time the component is rendered. | ||
(ALPHA) (Optional) Sets the breakpoint size props of the selector components grid item, when the See https://mui.com/material-ui/api/grid/#props (e.g., https://mui.com/material-ui/api/grid/#grid-prop-xs) for more information about the MUI Grid props, and https://mui.com/material-ui/customization/breakpoints/ for more information about MUI’s responsive breakpoints. | |||
boolean |
(ALPHA) (Optional) A boolean value that specifies whether or not to shrink the selector and phone number input components’ labels. See https://mui.com/material-ui/react-text-field/#shrink for more information. | ||
Partial<StackProps> |
(ALPHA) (Optional) Props passed to the MUI Stack component if the country code components are wrapped in one. | ||
string |
(ALPHA) (Optional) Variable holding the value of the phone number input field. Provide this when you wish to use the component as a controlled component. | ||
TextFieldVariants |
(ALPHA) (Optional) Defines which variant of the MUI TextField is used in the country code selector and phone number input components. See https://mui.com/material-ui/react-text-field/#basic-textfield about the TextField variants. |