コンテンツにスキップ
アカウントを作成
または
サインイン
Stripe ドキュメントのロゴ
/
AI に質問する
アカウントを作成
サインイン
始める
支払い
財務の自動化
プラットフォームおよびマーケットプレイス
資金管理
開発者向けのツール
始める
支払い
財務の自動化
始める
支払い
財務の自動化
プラットフォームおよびマーケットプレイス
資金管理
概要
Stripe Payments について
構築済みのシステムをアップグレード
支払いの分析
オンライン決済
概要ユースケースを見つけるManaged Payments
Payment Links を使用する
決済ページを構築
高度なシステムを構築
    概要
    クイックスタート
    高度なシステムを設計
    デザインをカスタマイズする
    決済手段を管理
    追加情報を収集する
    支払いで税金を徴収
    支払いに使用された決済手段を保存する
    支払いを行わずに顧客の決済手段を保存する
    領収書と支払い済みの請求書を送信する
アプリ内実装を構築
支払い方法
決済手段を追加
決済手段を管理
Link による購入の迅速化
支払いインターフェイス
Payment Links
Checkout
Web Elements
アプリ内 Elements
決済シナリオ
カスタムの決済フロー
柔軟なアクワイアリング
オーケストレーション
店頭支払い
端末
他の Stripe プロダクト
Financial Connections
仮想通貨
Climate
ホーム支払いBuild an advanced integration

注

このページはまだ日本語ではご利用いただけません。より多くの言語で文書が閲覧できるように現在取り組んでいます。準備が整い次第、翻訳版を提供いたしますので、もう少しお待ちください。

Elements Appearance API

Element は、サイトに合わせてデザインをカスタマイズできます

ページをコピー

Stripe Elements はデザインのカスタマイズに対応しており、appearance オプションでサイトのデザインと親和性を持たせることができます。各要素のレイアウトに一貫性をもたせながら、色、フォント、ボーダー、パディングなどを変更することができます。

  1. まず、テーマを選択します。

事前に構築されたテーマの中から、実際のウェブサイトに最も近いものを選ぶことで、すぐに利用を開始できます。

  1. variables を使用してテーマをカスタマイズします。

fontFamily や colorPrimary などの変数を設定して、各要素全体に表示されるコンポーネントを広範囲にわたってカスタマイズします。

  1. 必要に応じて、rules を使用して個々のコンポーネントと状態を微調整します。

きめ細かく制御するには、Element に表示される個々のコンポーネントにカスタム CSS プロパティを指定します。

注

Elements Appearance API は、個別の支払い方法の Element (CardElement など) には対応していません。Element をカスタマイズするには、代わりに Style (スタイル) オブジェクトを使用してください。

顧客の所在地
レイアウト

テーマ

Start customizing Elements by picking from one of the following themes:

  • stripe
  • night
  • flat
const appearance = { theme: 'night' }; // Pass the appearance object to the Elements instance const elements = stripe.elements({clientSecret, appearance});

変数

Set variables to affect the appearance of many components appearing throughout each Element.

Payment form with card input fields, major credit card icons, and Klarna payment option, with labeled Appearance API variables for colors and styling.

The variables option works like CSS variables. You can specify CSS values for each variable and reference other variables with the var(--myVariable) syntax. You can even inspect the resulting DOM using the DOM explorer in your browser.

const appearance = { theme: 'stripe', variables: { colorPrimary: '#0570de', colorBackground: '#ffffff', colorText: '#30313d', colorDanger: '#df1b41', fontFamily: 'Ideal Sans, system-ui, sans-serif', spacingUnit: '2px', borderRadius: '4px', // See all possible variables below } }; // Pass the appearance object to the Elements instance const elements = stripe.elements({clientSecret, appearance});

Commonly used variables

Variable説明
fontFamilyElements 全体で使用されるフォントファミリー。Elements は、fonts オプションを Elements グループ に渡すことで、カスタムフォントをサポートします。
fontSizeBaseThe font size that’s set on the root of the Element. By default, other font size variables such as fontSizeXs or fontSizeSm are scaled from this value using rem units. Make sure that you choose a font size of at least 16px for input fields on mobile.
spacingUnitThe base spacing unit that all other spacing is derived from. Increase or decrease this value to make your layout more or less spacious.
borderRadiusThe border radius used for tabs, inputs, and other components in the Element.
colorPrimaryA primary color used throughout the Element. Set this to your primary brand color.
colorBackgroundThe color used for the background of inputs, tabs, and other components in the Element.
colorTextThe default text color used in the Element.
colorDangerA color used to indicate errors or destructive actions in the Element.

Less commonly used variables

Variable説明
fontSmoothWhat text anti-aliasing settings to use in the Element. It can be always, auto, or never.
fontVariantLigaturesThe font-variant-ligatures setting of text in the Element.
fontVariationSettingsThe font-variation-settings setting of text in the Element.
fontWeightLightThe font weight used for light text.
fontWeightNormalThe font weight used for normal text.
fontWeightMediumThe font weight used for medium text.
fontWeightBoldThe font weight used for bold text.
fontLineHeightThe line-height setting of text in the Element.
fontSizeXlThe font size of extra-large text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
fontSizeLgThe font size of large text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
fontSizeSmThe font size of small text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
fontSizeXsThe font size of extra-small text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
fontSize2XsThe font size of double-extra small text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
fontSize3XsThe font size of triple-extra small text in the Element. By default this is scaled from var(--fontSizeBase) using rem units.
logoColorA preference for which logo variations to display; either light or dark.
tabLogoColorThe logo variation to display inside .Tab components; either light or dark.
tabLogoSelectedColorThe logo variation to display inside the .Tab--selected component; either light or dark.
blockLogoColorThe logo variation to display inside .Block components; either light or dark.
colorSuccessA color used to indicate positive actions or successful results in the Element.
colorWarningA color used to indicate potentially destructive actions in the Element.
accessibleColorOnColorPrimaryThe color of text appearing on top of any var(--colorPrimary) background.
accessibleColorOnColorBackgroundThe color of text appearing on top of any var(--colorBackground) background.
accessibleColorOnColorSuccessThe color of text appearing on top of any var(--colorSuccess) background.
accessibleColorOnColorDangerThe color of text appearing on top of any var(--colorDanger) background.
accessibleColorOnColorWarningThe color of text appearing on top of any var(--colorWarning) background.
colorTextSecondaryThe color used for text of secondary importance. For example, this color is used for the label of a tab that isn’t currently selected.
colorTextPlaceholderThe color used for input placeholder text in the Element.
iconColorThe default color used for icons in the Element, such as the icon appearing in the card tab.
iconHoverColorThe color of icons when hovered.
iconCardErrorColorThe color of the card icon when it’s in an error state.
iconCardCvcColorThe color of the CVC variant of the card icon.
iconCardCvcErrorColorThe color of the CVC variant of the card icon when the CVC field has invalid input.
iconCheckmarkColorThe color of checkmarks displayed within components like .Checkbox.
iconChevronDownColorThe color of arrow icons displayed within select inputs.
iconChevronDownHoverColorThe color of arrow icons when hovered.
iconCloseColorThe color of close icons, used for indicating a dismissal or close action.
iconCloseHoverColorThe color of close icons when hovered.
iconLoadingIndicatorColorThe color of the spinner in loading indicators.
iconMenuColorThe color of menu icons used to indicate a set of additional actions.
iconMenuHoverColorThe color of menu icons when hovered.
iconMenuOpenColorThe color of menu icons when opened.
iconPasscodeDeviceColorThe color of the passcode device icon, used to indicate a message has been sent to the user’s mobile device.
iconPasscodeDeviceHoverColorThe color of the passcode device icon when hovered.
iconPasscodeDeviceNotificationColorThe color of the notification indicator displayed over the passcode device icon.
iconRedirectColorThe color of the redirect icon that appears for redirect-based payment methods.
tabIconColorThe color of icons appearing in a tab.
tabIconHoverColorThe color of icons appearing in a tab when the tab is hovered.
tabIconSelectedColorThe color of icons appearing in a tab when the tab is selected.
tabIconMoreColorThe color of the icon that appears in the trigger for the additional payment methods menu.
tabIconMoreHoverColorThe color of the icon that appears in the trigger for the additional payment methods menu when the trigger is hovered.
accordionItemSpacingThe vertical spacing between .AccordionItem components. This is only applicable when spacedAccordionItems is true.
gridColumnSpacingThe spacing between columns in the grid used for the Element layout.
gridRowSpacingThe spacing between rows in the grid used for the Element layout.
pickerItemSpacingThe spacing between .PickerItem components rendered within the .Picker component.
tabSpacingThe horizontal spacing between .Tab components.

ルール

The rules option is a map of CSS-like selectors to CSS properties, allowing granular customization of individual components. After defining your theme and variables, use rules to seamlessly integrate Elements to match the design of your site.

const appearance = { rules: { '.Tab': { border: '1px solid #E0E6EB', boxShadow: '0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(18, 42, 66, 0.02)', }, '.Tab:hover': { color: 'var(--colorText)', }, '.Tab--selected': { borderColor: '#E0E6EB', boxShadow: '0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(18, 42, 66, 0.02), 0 0 0 2px var(--colorPrimary)', }, '.Input--invalid': { boxShadow: '0 1px 1px 0 rgba(0, 0, 0, 0.07), 0 0 0 2px var(--colorDanger)', }, // See all supported class names and selector syntax below } }; // Pass the appearance object to the Elements instance const elements = stripe.elements({clientSecret, appearance});

All rules

The selector for a rule can target any of the public class names in the Element, as well as the supported states, pseudo-classes, and pseudo-elements for each class. For example, the following are valid selectors:

  • .Tab, .Label, .Input
  • .Tab:focus
  • .Input--invalid, .Label--invalid
  • .Input::placeholder

The following are not valid selectors:

  • .p-SomePrivateClass, img, only public class names can be targeted
  • .Tab .TabLabel, ancestor-descendant relationships in selectors are unsupported
  • .Tab--invalid, the .Tab class does not support the --invalid state

Each class name used in a selector supports an allowlist of CSS properties, that you specify using camel case (for example, boxShadow for the box-shadow property).

The following is the complete list of supported class names and corresponding states, pseudo-classes, and pseudo-elements.

Tabs

Class nameStates Pseudo-classesPseudo-elements
.Tab--selected:hover, :focus, :active, :disabled
.TabIcon--selected:hover, :focus, :active, :disabled
.TabLabel--selected:hover, :focus, :active, :disabled

Form Inputs - Labels Above

Make sure that you choose a font size of at least 16px for input fields on mobile.

Class nameStates Pseudo-classesPseudo-elements
.Label--empty, --invalid, --focused
.Input--empty, --invalid:hover, :focus, :disabled, :autofill::placeholder, ::selection
.Error

Form Inputs - Floating Labels

注

Floating Labels can be enabled as an additional configuration option.

Class nameStates Pseudo-classesPseudo-elements
.Label--empty, --invalid, --focused, --floating, --resting
.Input--empty, --invalid:hover, :focus, :disabled, :autofill::placeholder, ::selection
.Error

Block

Class nameStates Pseudo-classesPseudo-elements
.Block
.BlockDivider
.BlockAction--negative:hover, :focus, :active

Code Input

Class nameStates Pseudo-classesPseudo-elements
.CodeInput:hover, :focus, :disabled

Checkbox

Class nameStates Pseudo-classesPseudo-elements
.Checkbox--checked
.CheckboxLabel--checked:hover, :focus, :focus-visible
.CheckboxInput--checked:hover, :focus, :focus-visible

Dropdown

Class nameStates Pseudo-classesPseudo-elements
.Dropdown
.DropdownItem--highlight:active

Switch

Class nameStates Pseudo-classesPseudo-elements
.Switch--active:hover
.SwitchControl:hover

Picker

Class nameStates Pseudo-classesPseudo-elements
.PickerItem--selected, --highlight, --new, --disabled:hover, :focus, :active
.PickerAction:hover, :focus, :active

Make sure your .PickerItem active state stands out amongst the other states.

DO

Use a noticeable, high-contrast primary color, weight, and/or outline to distinguish the active state your customer has already selected.

DON’T

Don’t use two equally weighted options or low-contrast colors for your .PickerItem states because it makes distinguishing which one is active more difficult.

Menu

Class nameStates Pseudo-classesPseudo-elements
.Menu
.MenuIcon--open:hover
.MenuAction--negative:hover, :focus, :active

Accordion

Class nameStates Pseudo-classesPseudo-elements
.AccordionItem--selected:hover, :focus-visible

Payment Method Messaging Element

Class nameStates Pseudo-classesPseudo-elements
.PaymentMethodMessaging

Radio Icon

Class nameStates Pseudo-classesPseudo-elements
.RadioIcon
.RadioIconOuter--checked, --hovered
.RadioIconInner--checked, --hovered

You can control the overall size of the icon with the width property on .RadioIcon. You can control the relative size of .RadioIconInner with the r (radius) property. .RadioIconOuter and .RadioIconInner are SVG elements and can be styled with stroke and fill properties. See the full list of supported CSS properties below.

const appearance = { rules: { '.RadioIcon': { width: '24px' }, '.RadioIconOuter': { stroke: '#E0E6EB' }, '.RadioIconInner': { r: '16' } } };

Supported CSS properties

CSS PropertySupported classes
-moz-osx-font-smoothingAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
-webkit-font-smoothingAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
-webkit-text-fill-colorAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
backgroundColorAccordionItem, Action, Block, BlockAction, BlockDivider, Button, CheckboxInput, CodeInput, DropdownItem, Error, Input, InputDivider, MenuAction, MenuIcon, PickerAction, PickerItem, Switch, Tab, ToggleItem
borderAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomColorAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomLeftRadiusAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomRightRadiusAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomStyleAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderBottomWidthAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderColorAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderLeftAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderLeftColorAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderLeftStyleAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderLeftWidthAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderRadiusAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, InputCloseIcon, Link, MenuAction, MenuIcon, PasscodeCloseIcon, PasscodeShowIcon, PickerAction, PickerItem, RedirectText, SecondaryLink, Switch, SwitchControl, Tab, TermsLink, TermsText, Text, ToggleItem
borderRightAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderRightColorAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderRightStyleAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderRightWidthAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderStyleAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopColorAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopLeftRadiusAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopRightRadiusAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopStyleAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderTopWidthAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
borderWidthAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Switch, SwitchControl, Tab, TermsText, Text, ToggleItem
boxShadowAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, InputCloseIcon, Link, MenuAction, MenuIcon, PasscodeCloseIcon, PasscodeShowIcon, PickerAction, PickerItem, SecondaryLink, Switch, SwitchControl, Tab, TermsLink, ToggleItem
colorAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabIcon, TabLabel, TermsLink, TermsText, Text, ToggleItem
fillAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, MenuAction, MenuIcon, PickerAction, PickerItem, RadioIconInner, RadioIconOuter, SwitchControl, Tab, TabIcon, ToggleItem
fillOpacityRadioIconInner, RadioIconOuter
fontFamilyAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
fontSizeAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Switch, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
fontVariantAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
fontWeightAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
letterSpacingAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
lineHeightAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
marginAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, MenuAction, PickerAction, PickerItem, Tab, ToggleItem
marginBottomAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, MenuAction, PickerAction, PickerItem, Tab, ToggleItem
marginLeftAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, MenuAction, PickerAction, PickerItem, Tab, ToggleItem
marginRightAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, MenuAction, PickerAction, PickerItem, Tab, ToggleItem
marginTopAction, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, MenuAction, PickerAction, PickerItem, Tab, ToggleItem
opacityLabel
outlineAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, InputCloseIcon, Link, MenuAction, MenuIcon, PasscodeCloseIcon, PasscodeShowIcon, PickerAction, PickerItem, SecondaryLink, Switch, SwitchControl, Tab, TermsLink, ToggleItem
outlineOffsetAccordionItem, Action, Block, BlockAction, Button, CheckboxInput, CodeInput, Dropdown, DropdownItem, Error, Input, InputCloseIcon, Link, MenuAction, MenuIcon, PasscodeCloseIcon, PasscodeShowIcon, PickerAction, PickerItem, SecondaryLink, Switch, SwitchControl, Tab, TermsLink, ToggleItem
paddingAccordionItem, Action, Block, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, Menu, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Tab, TabIcon, TabLabel, TermsText, Text, ToggleItem
paddingBottomAccordionItem, Action, Block, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, Menu, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Tab, TabIcon, TabLabel, TermsText, Text, ToggleItem
paddingLeftAccordionItem, Action, Block, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, Menu, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Tab, TabIcon, TabLabel, TermsText, Text, ToggleItem
paddingRightAccordionItem, Action, Block, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, Menu, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Tab, TabIcon, TabLabel, TermsText, Text, ToggleItem
paddingTopAccordionItem, Action, Block, BlockAction, Button, CodeInput, DropdownItem, Error, Input, Label, Menu, MenuAction, MenuIcon, PickerAction, PickerItem, RedirectText, Tab, TabIcon, TabLabel, TermsText, Text, ToggleItem
rRadioIconInner
strokeRadioIconInner, RadioIconOuter
strokeOpacityRadioIconInner, RadioIconOuter
strokeWidthRadioIconInner, RadioIconOuter
textAlignPaymentMethodMessaging
textDecorationAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
textShadowAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
textTransformAccordionItem, Action, BlockAction, Button, Checkbox, CheckboxLabel, CodeInput, DropdownItem, Error, Input, Label, Link, MenuAction, PickerAction, PickerItem, RedirectText, SecondaryLink, Tab, TabLabel, TermsLink, TermsText, Text, ToggleItem
transitionAction, Block, BlockAction, Button, CheckboxInput, CheckboxLabel, CodeInput, Dropdown, DropdownItem, Error, Icon, Input, InputCloseIcon, Label, Link, MenuAction, MenuIcon, PasscodeCloseIcon, PasscodeShowIcon, PickerAction, PickerItem, RadioIconInner, RadioIconOuter, RedirectText, SecondaryLink, Switch, SwitchControl, Tab, TabIcon, TabLabel, TermsLink, TermsText, Text, ToggleItem
widthRadioIcon

Some exceptions to the properties above are:

  • -webkit-text-fill-color isn’t compatible with pseudo-classes

その他の設定オプション

In addition to themes, variables and rules, we have provided additional appearance configuration options to style Elements.

You can customize these by adding them to the appearance object:

const appearance = { labels: 'floating', // other configurations such as `theme`, `variables` and `rules`... }

We currently support the below options:

Configuration説明
disableAnimationsElements 全体でアニメーションを無効にします。Boolean で、既定値は false です。
labelsEnables switching between labels above form fields and floating labels within the form fields; it can be either above or floating
このページはお役に立ちましたか。
はいいいえ
お困りのことがございましたら 、サポートにお問い合わせください。
早期アクセスプログラムにご参加ください。
変更ログをご覧ください。
ご不明な点がございましたら、お問い合わせください。
LLM ですか?llms.txt を読んでください。
Powered by Markdoc