MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TreeViewLoadMoreItem

Function TreeViewLoadMoreItem

packages/@react-spectrum/s2/src/TreeView.tsx:722–743  ·  view source on GitHub ↗
(props: TreeViewLoadMoreItemProps)

Source from the content-addressed store, hash-verified

720});
721
722export const TreeViewLoadMoreItem = (props: TreeViewLoadMoreItemProps): ReactNode => {
723 let {loadingState, onLoadMore} = props;
724 let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');
725 let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
726 return (
727 <TreeLoadMoreItem
728 isLoading={isLoading}
729 onLoadMore={onLoadMore}
730 className={style({width: 'full', marginY: 4})}>
731 {() => {
732 return (
733 <div className={centeredWrapper}>
734 <ProgressCircle
735 isIndeterminate
736 aria-label={stringFormatter.format('treeview.loadingMore')}
737 />
738 </div>
739 );
740 }}
741 </TreeLoadMoreItem>
742 );
743};
744
745interface ExpandableRowChevronProps {
746 isExpanded?: boolean;

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected