Closed jamcry closed 2 years ago
In most of the projects, we create a custom DescriptionList component. We better add this to toolkit as well.
DescriptionList
List
type: "unordered" | "ordered" | "description";
then we can render the corresponding elements inside List.
DescriptionTerm
ListItem
DescriptionTermShape
export interface DescriptionTermShape { testid: string; title: string; description: React.ReactNode; descriptionFirst?: boolean; customClassName?: string; }
In most of the projects, we create a custom
DescriptionList
component. We better add this to toolkit as well.List
, something like:then we can render the corresponding elements inside
List
.DescriptionTerm
andListItem
) are different. We should be aware of this.DescriptionTermShape
: