跳到主要內容跳到主要內容

TimelineOppositeContentAPI

React TimelineOppositeContent 元件的 API 參考文件。瞭解此匯出模組的 props、CSS 和其他 API。

示範

Import

import TimelineOppositeContent from '@mui/lab/TimelineOppositeContent';
// or
import { TimelineOppositeContent } from '@mui/lab';

閱讀這份關於最小化 bundle 大小的指南,以瞭解差異。

Props

Typography 元件的 Props 也可使用。

名稱類型描述
childrennode

元件的內容。

classesobject

覆寫或擴展應用於元件的樣式。

請參閱下方CSS 類別 API 以取得更多詳細資訊。

sxArray<func
| object
| bool>
| func
| object

系統屬性,允許定義系統覆寫以及額外的 CSS 樣式。

請參閱 `sx` 頁面 以取得更多詳細資訊。

ref 會轉發到根元素。

繼承

雖然上方未明確記錄,但 Typography 元件的 props 也可在 TimelineOppositeContent 中使用。您可以利用此優勢來鎖定巢狀元件

主題預設 props

您可以使用 MuiTimelineOppositeContent 透過主題變更此元件的預設 props。

CSS 類別

這些類別名稱對於使用 CSS 設定樣式很有用。當觸發特定狀態時,它們會應用於元件的插槽。

類別名稱規則名稱描述
.MuiTimelineOppositeContent-positionAlternatepositionAlternate如果 position="alternate",則樣式會應用於根元素。
.MuiTimelineOppositeContent-positionAlternateReversepositionAlternateReverse如果 position="alternate-reverse",則樣式會應用於根元素。
.MuiTimelineOppositeContent-positionLeftpositionLeft如果 position="left",則樣式會應用於根元素。
.MuiTimelineOppositeContent-positionRightpositionRight如果 position="right",則樣式會應用於根元素。
.MuiTimelineOppositeContent-rootroot應用於根元素的樣式。

您可以使用以下自訂選項之一覆寫元件的樣式

原始碼

如果您在此頁面中找不到資訊,請考慮查看元件的實作以取得更多詳細資訊。