Skip to content

Commit

Permalink
fixup! Feat(web-twig): Add Message and Link for ToastBar #DS-1213
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed May 24, 2024
1 parent f3fd50a commit f9c0011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/web-twig/src/Resources/components/Toast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ The content of `ToastBar` can be assembled from the following subcomponents:
</ToastBar>
```

#### API

| Name | Type | Default | Required | Description |
| ---------- | -------- | ------- | -------- | ---------------------- |
| `children` | `string` ||| Content of the message |

#### ToastBarLink

`ToastBarLink` is a subcomponent designated to create an action link within `ToastBar`.
Expand All @@ -213,6 +219,7 @@ The content of `ToastBar` can be assembled from the following subcomponents:

| Name | Type | Default | Required | Description |
| -------------- | ------------------------------------------------ | ---------- | -------- | ------------------------------ |
| `children` | `string` ||| Content of the link |
| `color` | [Action Link Color dictionary][dictionary-color] | `inverted` || Color of the link |
| `href` | `string` ||| ToastBarLink's href attribute |
| `isDisabled` | `bool` | `false` || Whether is the link disabled |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
{%- set _allowedAttributes = [ 'target', 'title' ] -%}
{%- set _classNames = [ _rootClassName, _styleProps.className ] -%}


{% embed "@spirit/link.twig" with { props: props | merge({
color: _color,
isUnderlined: _isUnderlined,
Expand Down

0 comments on commit f9c0011

Please sign in to comment.