@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
| Parameter | Type |
|---|---|
appearance | CheckoutAppearance |
Returns
ts
{
data-ck-density?: "comfortable" | "compact";
}data-ck-density?
ts
optional data-ck-density?: "comfortable" | "compact";