Go Main page
Go Main page

Web components

cover

components

Input Phone

v.1.0.0 | Saturn

Usage

The name of the object of tokens to style input phone is INPUT_PHONE_STYLES.

You can not change the name of the object of tokens.

The variant prop allows to modify different aspects of the component.

Variants

Variants can modify the styles for each inner state of the inputPhone. The inner states are the same as the InputState.

The tokens extends those associated to the input basic, InputBasicStateProps, and adds:

12345678910
const INPUT_PHONE_STYLES = {
  [VARIANT]: {
    [STATE]: {
      inputVariant?: string;
      affixContainer? CommonStyleType;
      affixContainerPosition?: InputContentPosition;
      affix?: TypographyTypes;
      affixIcon?: IconTypes;
      affixIconContainer?: CommonStyleType;
      affixIconHighlighted?: {

Example

inputPhone theme object example:

12345678910
const INPUT_PHONE_STYLES = {
  [VARIANT]: {
    [STATE]: {
      inputVariant: 'DEFAULT'
      affixContainer: {
        display: 'display',
        justify_content: 'justify-content',
        width: 'width',
        height: 'auto',
        padding: 'padding',