@devopness/ui-react
Version:
Devopness Design System React Components - Painless essential DevOps to everyone
25 lines (24 loc) • 831 B
TypeScript
import { ReactNode } from 'react';
/**
* Props for the `ReviewBox` component.
*/
type ReviewBoxProps = {
/** Child `Review` components to be displayed inside this container */
children: ReactNode;
/** The type of the review box, which affects its background color */
type?: 'default' | 'warning';
};
/**
* A container component for displaying a group of `Review` components.
*
* Pass any number of `Review` components as children to this component.
*
* @example
* <ReviewBox type="default">
* <Review content="Status: Approved" icon="check" prefix="Info" />
* <Review content="Score: 85%" icon="star" isIconAfterLabel />
* </ReviewBox>
*/
declare const ReviewBox: ({ children, type }: ReviewBoxProps) => import("react/jsx-runtime").JSX.Element;
export type { ReviewBoxProps };
export { ReviewBox };