@octopusdeploy/design-system-components
Version:
The design systems component library.
15 lines (14 loc) • 582 B
TypeScript
interface ListDescriptionProps {
description: string | React.ReactElement | React.ReactElement[];
}
/**
* ListDescription displays a description for a list item.
* Strings render as a `<p>`, ReactElements render in a `<div>`.
* If the description is an empty string, the component will return null.
*
* @example
* <ListDescription description="Simple text description" />
* <ListDescription description={<CustomComponent />} />
*/
export declare function ListDescription({ description }: ListDescriptionProps): import("react/jsx-runtime").JSX.Element | null;
export {};