Appearance configuration for Currency Selector Element.

interface Appearance {
    contentVerticalPadding?: number;
    font?: Partial<PaymentSheet.FontConfig>;
    colors?:
        | ColorConfiguration
        | { light: ColorConfiguration; dark: ColorConfiguration };
    shapes?: ShapeConfiguration;
    labelContent?: LabelContent;
}

Properties

contentVerticalPadding?: number

Vertical padding inside each currency option, in density-independent pixels.

font?: Partial<PaymentSheet.FontConfig>

Font family and scale used throughout the selector.

colors?:
    | ColorConfiguration
    | { light: ColorConfiguration; dark: ColorConfiguration }

Colors used by the selector.

Shape configuration for the selector track and selected pill.

labelContent?: LabelContent

Content displayed in each currency option. Defaults to automatic.