Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
feat: image component optional dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
flxtagi committed Apr 1, 2023
1 parent 6ac7a24 commit bf2e7d3
Show file tree
Hide file tree
Showing 2 changed files with 363 additions and 128 deletions.
8 changes: 4 additions & 4 deletions src/components/Atoms/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type TImage<T> = {
src?: string;

/**
* width of the displayed image in px
* optional width of the displayed image in px
*/
width: number;
width?: number;

/**
* optional: height of the displayed image in px (if set, the image will be cropped to fit the aspect ratio)
Expand All @@ -41,8 +41,8 @@ type TImage<T> = {
*
* @param { string } imageComponent - HTML tag to render an image (e.g. NextImage)
* @param { string } src for image
* @param { number } width display width for image
* @param { number } height display height for image (optional)
* @param { number } optional: width display width for image
* @param { number } optional: height display height for image (optional)
* @param { string } alt alternative text for image
* @param { string } caption caption text for image (optional)
*
Expand Down
Loading

0 comments on commit bf2e7d3

Please sign in to comment.