diff --git a/CHANGELOG.md b/CHANGELOG.md index c9f02e1af..b49834002 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -* +* `title` and `subtitle` optional props to Lightbox component - [#635](https://github.com/ripe-tech/ripe-components-vue/issues/635) ### Changed diff --git a/vue/components/ui/molecules/lightbox/lightbox.stories.js b/vue/components/ui/molecules/lightbox/lightbox.stories.js index 0c3c1d4d0..f9efcfdc8 100644 --- a/vue/components/ui/molecules/lightbox/lightbox.stories.js +++ b/vue/components/ui/molecules/lightbox/lightbox.stories.js @@ -18,6 +18,8 @@ storiesOf("Components/Molecules/Lightbox", module) ` diff --git a/vue/components/ui/molecules/lightbox/lightbox.vue b/vue/components/ui/molecules/lightbox/lightbox.vue index 306c59737..926e85983 100644 --- a/vue/components/ui/molecules/lightbox/lightbox.vue +++ b/vue/components/ui/molecules/lightbox/lightbox.vue @@ -1,6 +1,9 @@ + + {{ title }} + + + {{ subTitle }} + img { cursor: pointer; height: inherit; @@ -89,6 +115,14 @@ export const Lightbox = { name: "lightbox", props: { + title: { + type: String, + default: null + }, + subTitle: { + type: String, + default: null + }, image: { type: String, default: null