Skip to content

Commit ce54e26

Browse files
authored
update toast placement options (#7615)
1 parent 6806410 commit ce54e26

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/@react-spectrum/toast/docs/Toast.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function Example() {
167167

168168
## Placement
169169

170-
By default, toasts are displayed at the bottom center of the screen. This can be changed by setting the `placement` prop on the `ToastContainer` to `'top start'`, `'top'`, `'top end'`, `'bottom start'`, `'bottom'`, or `'bottom end'`.
170+
By default, toasts are displayed at the bottom center of the screen. This can be changed by setting the `placement` prop on the `ToastContainer` to `'top'`, `'top end'`, `'bottom'`, or `'bottom end'`.
171171

172172
```tsx example render=false hidden
173173
<ToastContainer placement="bottom end" />

packages/@react-spectrum/toast/src/ToastContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {Toaster} from './Toaster';
2121
import {ToastOptions, ToastQueue, useToastQueue} from '@react-stately/toast';
2222
import {useSyncExternalStore} from 'use-sync-external-store/shim/index.js';
2323

24-
export type ToastPlacement = 'top start' | 'top' | 'top end' | 'bottom start' | 'bottom' | 'bottom end';
24+
export type ToastPlacement = 'top' | 'top end' | 'bottom' | 'bottom end';
2525

2626
export interface SpectrumToastContainerProps extends AriaToastRegionProps {
2727
placement?: ToastPlacement

packages/@react-spectrum/toast/stories/Toast.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
},
4747
placement: {
4848
control: 'select',
49-
options: [undefined, 'top start', 'top', 'top end', 'bottom start', 'bottom', 'bottom end']
49+
options: [undefined, 'top', 'top end', 'bottom', 'bottom end']
5050
}
5151
}
5252
};

0 commit comments

Comments
 (0)