Skip to content

Commit

Permalink
fix: update toast position docs (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-p44 authored Aug 2, 2024
1 parent 29bcd1e commit 3e5792e
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/cold-onions-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'storybook-manifest': minor
'website': minor
---

fix: update Toast position docs
4 changes: 2 additions & 2 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dev": "storybook dev -p 8000 --quiet"
},
"dependencies": {
"@project44-manifest/react": "^3.19.0",
"@project44-manifest/react-icons": "^2.1.1",
"@project44-manifest/react": "^3.24.0",
"@project44-manifest/react-icons": "^2.2.0",
"@storybook/addon-a11y": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
Expand Down
18 changes: 18 additions & 0 deletions apps/website/docs/overlays/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,24 @@ function Duration() {
}
```

### Position

Set toast position on the screen using the `position` prop.

```jsx live
function Position() {
const handlePress = React.useCallback(() => {
toast('Lorem ipsum dolor', {
position: 'bottom-left',
description:
'consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
});
}, []);

return <Button onPress={handlePress}>Open bottom-left toast</Button>;
}
```

### Description

Add additional information to a toast using the `description` prop.
Expand Down
4 changes: 2 additions & 2 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@internationalized/date": "^3.1.0",
"@mdx-js/react": "^1.6.22",
"@project44-manifest/design-tokens": "^3.1.1",
"@project44-manifest/react": "^3.23.0",
"@project44-manifest/react-icons": "^2.1.1",
"@project44-manifest/react": "^3.24.0",
"@project44-manifest/react-icons": "^2.2.0",
"@react-aria/i18n": "^3.7.0",
"clsx": "^1.2.1",
"docusaurus-plugin-sass": "^0.2.3",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5549,7 +5549,7 @@ __metadata:
languageName: node
linkType: hard

"@project44-manifest/react-icons@^2.1.1, @project44-manifest/react-icons@workspace:packages/react-icons":
"@project44-manifest/react-icons@^2.1.1, @project44-manifest/react-icons@^2.2.0, @project44-manifest/react-icons@workspace:packages/react-icons":
version: 0.0.0-use.local
resolution: "@project44-manifest/react-icons@workspace:packages/react-icons"
dependencies:
Expand Down Expand Up @@ -5622,7 +5622,7 @@ __metadata:
languageName: node
linkType: hard

"@project44-manifest/react@^3.19.0, @project44-manifest/react@^3.23.0, @project44-manifest/react@workspace:packages/react":
"@project44-manifest/react@^3.24.0, @project44-manifest/react@workspace:packages/react":
version: 0.0.0-use.local
resolution: "@project44-manifest/react@workspace:packages/react"
dependencies:
Expand Down Expand Up @@ -23780,8 +23780,8 @@ __metadata:
"@babel/preset-env": ^7.23.3
"@babel/preset-react": ^7.23.3
"@babel/preset-typescript": ^7.23.3
"@project44-manifest/react": ^3.19.0
"@project44-manifest/react-icons": ^2.1.1
"@project44-manifest/react": ^3.24.0
"@project44-manifest/react-icons": ^2.2.0
"@storybook/addon-a11y": ^7.5.3
"@storybook/addon-essentials": ^7.5.3
"@storybook/addon-links": ^7.5.3
Expand Down Expand Up @@ -25887,8 +25887,8 @@ __metadata:
"@internationalized/date": ^3.1.0
"@mdx-js/react": ^1.6.22
"@project44-manifest/design-tokens": ^3.1.1
"@project44-manifest/react": ^3.23.0
"@project44-manifest/react-icons": ^2.1.1
"@project44-manifest/react": ^3.24.0
"@project44-manifest/react-icons": ^2.2.0
"@react-aria/i18n": ^3.7.0
"@types/lodash.kebabcase": ^4.1.7
"@types/lodash.startcase": ^4.4.7
Expand Down

0 comments on commit 3e5792e

Please sign in to comment.