Skip to content

Commit

Permalink
Merge branch 'main' into feature/1352
Browse files Browse the repository at this point in the history
  • Loading branch information
VadymBezpalko authored Oct 10, 2024
2 parents ad45ee4 + 9f02fcb commit 67eb2c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist
scripts
lib
.env
*.mdx
*.log
storybook-static
vite.config.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ import { linkTo } from '@storybook/addon-links';
label: 'Browse PromoBannerV2',
handleClick: linkTo('Components/PromoBannerV2'),
}}
>
This component is <b>deprecated</b>, it will be not updated anymore, and in
the version <b>2.0.0</b> will be removed. <br />
We strongly recommend you to start using <b>PromoBannerV2</b> component.
>
<b>Deprecated component</b>
<br />
<span>This component is <b>deprecated</b>, it will be not updated anymore, and in</span>
<br />
<span>the version <b>2.0.0</b> will be removed. <br /></span>
<span>We strongly recommend you to start using <b>PromoBannerV2</b> component.</span>
</Alert>
</Unstyled>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ import { SMALL_CONTAINER_WIDTH_TRESHOLD } from './constants.ts';
## Intro <a id="Intro" />

The `PromoBannerV2` component is used to display a promotional banner with a customizable layout and content. It can be used to display a variety of content, such as a call to action, a message, or an image.

### Example implementation <a id="ExampleImplementation" />

<Canvas of={Stories.Default} sourceState="none" />

```jsx
<PromoBannerV2
primaryButton={
primaryButton={{
label: 'Main CTA',
handleClick: () => {}
}
secondaryButton={
handleClick: () => {},
}}
secondaryButton={{
label: 'Secondary CTA',
handleClick: () => {}
}
handleClick: () => {},
}}
additionalContent={<img src={imgSrc} />}
onClose={() => {}}
>
Expand All @@ -34,8 +35,8 @@ The `PromoBannerV2` component is used to display a promotional banner with a cus
Title goes here, up 2 lines of text
</Heading>
</div>
A description with a <b>maximum of 100 characters</b>. That usually means
only one or two sentences.
A description with a <b>maximum of 100 characters</b>. That usually means only
one or two sentences.
</PromoBannerV2>
```

Expand Down Expand Up @@ -96,7 +97,7 @@ import { PromoBannerV2 } from '@livechat/design-system-react-components';
<Text>
Join us for a video call, and we'll thank you with a $25 gift card.
</Text>
</PromoBannerV2>
</PromoBannerV2>;
```
### How to control the elements <a id="HowToControlElements" />
Expand Down

0 comments on commit 67eb2c2

Please sign in to comment.