Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update toast position docs #547

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading