Skip to main content
Version: v6

ion-item-divider

shadow

Item dividers are block elements that can be used to separate items in a list. They are similar to list headers, but instead of only being placed at the top of a list, they should go in between groups of items.

Basic Usage

Theming

Colors

CSS Custom Properties

Properties

color

Descriptionアプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。 "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", と "dark" です.色に関する詳しい情報は theming を参照してください。
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultundefined

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

sticky

Descriptiontrueに設定すると、アイテムディバイダーがビューポートの上部に到達しても、次の ion-item-divider がそれを置き換えるまで表示されたままになります。 この機能は position:sticky に依存しています: https://caniuse.com/#feat=css-sticky
Attributesticky
Typeboolean
Defaultfalse

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

NameDescription
--backgroundアイテムディバイダーの背景
--colorアイテムディバイダーの色
--inner-padding-bottomアイテムディバイダーのBottom Inner Padding
--inner-padding-endアイテムディバイダーのEnd Inner Padding
--inner-padding-startアイテムディバイダーのStart Inner Padding
--inner-padding-topアイテムディバイダーのTop Inner Padding
--padding-bottomアイテムディバイダーのBottom Padding
--padding-endアイテムディバイダーの方向が左から右の場合はRight Padding、右から左の場合はLeft Padding
--padding-startアイテムディバイダーの方向が左から右の場合はLeft Padding、右から左の場合はRight Paddingとなります。
--padding-topアイテムディバイダーのTop Padding

Slots

NameDescription
``slotがない状態で提供される場合、コンテンツは名前付きslotの間に配置されます。
endコンテンツは、LTRでは仕切り文字の右側に、RTLでは左側に配置されます。
startコンテンツは、LTRでは仕切り文字の左側に、RTLでは右側に配置されます。