Skip to content

Commit

Permalink
added prop type descriptions for Content.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
recondesigns committed Mar 3, 2024
1 parent 7b0c272 commit 785c20f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions components/Content/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,39 @@ import Container from 'components/Container/Container';
import Heading from 'components/Heading/Heading';

export type ContentPropsType = {
/**
* Elements to be rendered in the container.
*/
columns: React.ReactNode[];
/**
* Sets the path for an optional background image.
*/
backgroundImageSource?: string;
/**
* Applies style classes to the wrapping div.
*/
className?: string;
/**
* Displays an optional line under the title.
*/
hasTitleUnderline?: boolean;
/**
* Applies an id to the container.
*/
id?: string;
/**
* Sets the height of the container to be full viewport height.
* @default false
*/
isFullViewportHeight?: boolean;
/**
* Applies the color theme.
* @default secondary
*/
theme?: 'gray' | 'secondary' | 'white';
/**
* Applies an additional title element.
*/
title?: string;
};

Expand Down

0 comments on commit 785c20f

Please sign in to comment.