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. | ||
ComponentSize | ComponentSizeGridLegacy |
(ALPHA) (Optional) Sets the breakpoint size props of the error message components grid item, when the See https://mui.com/material-ui/api/grid/ for more information about MUI Grid props, https://mui.com/material-ui/api/grid-legacy/ for more information about MUI GridLegacy 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 | ||
(ALPHA) (Optional) Props passed to the MUI Grid container component if the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the error message component is wrapped in, if the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the phone number input component is wrapped in, if the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item components if the | |||
(ALPHA) (Optional) Props passed to the MUI GridLegacy container component if the | |||
(ALPHA) (Optional) Props passed to the MUI GridLegacy item component that the error message component is wrapped in, if the | |||
(ALPHA) (Optional) Props passed to the MUI GridLegacy item component that the phone number input component is wrapped in, if the | |||
(ALPHA) (Optional) Props passed to the MUI GridLegacy item components if the | |||
(ALPHA) (Optional) Props passed to the MUI GridLegacy item component that the selector component is wrapped in, if the | |||
(ALPHA) (Optional) Props passed to the MUI Grid item component that the selector component is wrapped in, if | |||
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. | ||
RefObject<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. | ||
RefObject<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. | ||
ComponentSize | ComponentSizeGridLegacy |
(ALPHA) (Optional) Sets the breakpoint size props of the phone number input components grid item, when the See https://mui.com/material-ui/api/grid/ for more information about MUI Grid props, https://mui.com/material-ui/api/grid-legacy/ for more information about MUI GridLegacy 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 the 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. | ||
RefObject<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. | ||
ComponentSize | ComponentSizeGridLegacy |
(ALPHA) (Optional) Sets the breakpoint size props of the selector components grid item, when See https://mui.com/material-ui/api/grid/ for more information about MUI Grid props, https://mui.com/material-ui/api/grid-legacy/ for more information about MUI GridLegacy 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 | ||
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. |