Skip to content

Commit

Permalink
Add Id Prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthiago committed Sep 7, 2022
1 parent 1311ec2 commit 5f634ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default App;

| Property | Type | Description |
| :--- | :--- | :--- |
| images | {src: string; description?: string}[] | Array that contains image src and optional description. |
| images | {src: string; description?: string; id?: string}[] | Array that contains image src and optional description. |
| startIndex | number | First image from the array to display in the viewer. |
| open | boolean | Trigger to open/close modal. |
| onClose | () => void | Handle modal closing action.|
Expand Down
1 change: 1 addition & 0 deletions src/types/Carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
export interface Image {
src: string;
description?: string;
id?: string
}

1 comment on commit 5f634ad

@vercel
Copy link

@vercel vercel bot commented on 5f634ad Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.