Appearance configuration for Currency Selector Element.

interface CurrencySelectorElementAppearance {
    contentVerticalPadding?: number;
    font?: Partial<PaymentSheet.FontConfig>;
    colors?:
        | CurrencySelectorElementColorConfiguration
        | {
            light: CurrencySelectorElementColorConfiguration;
            dark: CurrencySelectorElementColorConfiguration;
        };
    shapes?: CurrencySelectorElementShapeConfiguration;
    labelContent?: CurrencySelectorElementLabelContent;
}

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?:
    | CurrencySelectorElementColorConfiguration
    | {
        light: CurrencySelectorElementColorConfiguration;
        dark: CurrencySelectorElementColorConfiguration;
    }

Colors used by the selector.

Shape configuration for the selector track and selected pill.

Content displayed in each currency option. Defaults to automatic.