baseui
Version:
A React Component library implementing the Base design language
17 lines (16 loc) • 635 B
TypeScript
import * as React from 'react';
import type { State, StatefulComponentContainerProps, StateChangeType } from './types';
declare class StatefulListContainer extends React.Component<StatefulComponentContainerProps, State> {
static defaultProps: Partial<StatefulComponentContainerProps>;
state: {
items: React.ReactNode[];
};
onChange: ({ oldIndex, newIndex, targetRect, }: {
oldIndex: number;
newIndex: number;
targetRect: ClientRect;
}) => void;
internalSetState(type: StateChangeType, changes: State): void;
render(): React.ReactNode;
}
export default StatefulListContainer;