@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
29 lines (28 loc) • 756 B
TypeScript
import React from "react";
import { ListItem } from "./List.Item";
import type { ListItemProps, ListProps } from "./List.types";
interface ListComponent extends React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>> {
/**
* @see 🏷️ {@link ListItemProps}
*/
Item: typeof ListItem;
}
/**
* A list component
*
* @see [📝 Documentation](https://aksel.nav.no/komponenter/core/list)
* @see 🏷️ {@link ListProps | Props}
*
* @example
* ```jsx
* <List>
* <List.Item>Coffee</List.Item>
* <List.Item>Tea</List.Item>
* <List.Item>Milk</List.Item>
* </List>
* ```
*/
export declare const List: ListComponent;
export default List;
export { ListItem };
export type { ListProps, ListItemProps };