Skip to content

Commit

Permalink
[#115] Review : add implementation in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dolinetouko committed Mar 1, 2023
1 parent 806d6f7 commit 90f422a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/components/Banners.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ Recommendation is available at the Orange Accessibility site

## Implementation

![Banner light](images/banner_light.png)

![Banner dark](images/banner_dark.png)

> **Jetpack Compose implementation**
You can use the `OdsBanner` composable like this:

```kotlin
OdsBanner(
message = "",
button1Text = "Dismiss",
button2Text = "Detail", // Optional
image = painterResource(id = R.drawable.placeholder) // Optional
)
```

## Component specific tokens

_Soon available_
Binary file added docs/components/images/banner_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/components/images/banner_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 90f422a

Please sign in to comment.