You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/list/context.ts

13 lines
276 B
TypeScript

import React from 'react';
import type { ListGridType } from '.';
export interface ListConsumerProps {
grid?: ListGridType;
itemLayout?: string;
}
export const ListContext = React.createContext<ListConsumerProps>({});
export const ListConsumer = ListContext.Consumer;