UNPKG

@abbl/material-calendar

Version:

Calendar component build with React and Material-UI

26 lines (25 loc) 858 B
import { ReactNode } from 'react'; export interface ExpandableContainerProps { /** * Elements that you want to storage inside the container. */ elements: ReactNode[]; /** * Height of the single element that will be used to calculate * how many elements can be displayed inside the container. */ elementHeight: number; /** * Element that will be renderered as the last one in the container. * * Always present even if there won't be enough space to display * given elements * * Must be the same size as provided elementHeight. */ expandMoreComponent?: (remainingElements: number) => ReactNode; } /** * TODO: Write explanation of this UI element, since it's meant to be reusable. */ export default function ExpandableContainer(props: ExpandableContainerProps): JSX.Element;