Skip to content

@checkout-kit/ui / appearanceToAttributes

Variable: appearanceToAttributes ​

ts
const appearanceToAttributes: (appearance) => {
  data-ck-density?: "comfortable" | "compact";
};

The part of an appearance that is an attribute rather than a custom property.

Parameters ​

ParameterType
appearanceCheckoutAppearance

Returns ​

ts
{
  data-ck-density?: "comfortable" | "compact";
}

data-ck-density? ​

ts
optional data-ck-density?: "comfortable" | "compact";

Apache-2.0 · Headless engine, provider adapters and runnable examples.