import * as React from "react"; import { Masonry } from "./masonry"; import type { MasonryProps } from "./masonry"; /** * This is just a single-column `` component without column-specific props. * * @param props */ export function List(props: ListProps) { return ( role="list" rowGutter={props.rowGutter} columnCount={1} columnWidth={1} {...props} /> ); } export interface ListProps extends Omit< MasonryProps, "columGutter" | "columnCount" | "columnWidth" > { /** * The amount of vertical space in pixels to add between the list cells. * * @default 0 */ rowGutter?: number; } if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") { List.displayName = "List"; }