Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

InfiniteScrollArea

InfiniteScrollAreaは、無限スクロール機能を提供するコンポーネントです。このコンポーネントは、コンポーネントの終わりに達したときに次のデータセットを自動的に読み込み、表示することで、スムーズなスクロール体験を提供します。

ソース@yamada-ui/infinite-scroll-area

Props

InfiniteScrollAreaProps

behavior

説明

Determines whether scrolling is instant or animates smoothly.

タイプ

ScrollBehavior

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

finish

説明

The infinite scroll area finish to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

indexRef

説明

Ref to a reset index function.

タイプ

RefObject<(index: number) => void>

initialLoad

説明

If true, invoke onLoad function for the first time.

タイプ

boolean

デフォルト

false

isDisabled

説明

If true, the infinite scroll is disabled.

タイプ

boolean

デフォルト

false

isReverse

説明

If true, reverse direction.

タイプ

boolean

デフォルト

false

loading

説明

The infinite scroll area loading to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

onLoad

説明

The callback invoked when trigger is intersect.

タイプ

({ index, entry, finish, }: { index: number finish: () => void entry?: IntersectionObserverEntry | undefined }) => void | Promise<void>

orientation

説明

The orientation of the infinite scroll.

タイプ

"vertical" | "horizontal"

デフォルト

'vertical'

resetRef

説明

Ref to a reset function.

タイプ

RefObject<(index?: number | undefined, runScroll?: boolean | undefined) => void>

rootRef

説明

The element that is used as the viewport for checking visibility of the target. Defaults to the browser viewport if not specified or if null.

タイプ

RefObject<HTMLElement>

size

説明

The size of the InfiniteScrollArea.

タイプ

string

startIndex

説明

If set the onLoad function will start from the given index. If initialLoad is true, index starts from 0.

タイプ

number

デフォルト

1

triggerProps

説明

Props for infinite scroll area trigger component.

タイプ

HTMLUIProps<"div">

variant

説明

The variant of the InfiniteScrollArea.

タイプ

string

GitHubでこのページを編集する

ScrollAreaColorSwatch