Skip to main content
Version: v7

ion-item-divider

shadow

アイテムディバイダは、リスト内の アイテム を区切るために使用できるブロック要素です。リストヘッダーと似ていますが、リストの一番上に置くだけでなく、アイテムのグループの間に置く必要があります。

基本的な使い方

テーマ

Colors

CSSカスタムプロパティ

プロパティ

color

DescriptionThe color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see 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

DescriptionWhen it's set to true, the item-divider will stay visible when it reaches the top of the viewport until the next ion-item-divider replaces it.

This feature relies in position:sticky: https://caniuse.com/#feat=css-sticky
Attributesticky
Typeboolean
Defaultfalse

イベント

No events available for this component.

メソッド

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSSカスタムプロパティ

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では右側に配置されます。