mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(toast-notification): add fullWidth
prop (#1444)
* feat(toast-notification): add `fullWidth` prop * Run "yarn build:docs" * test(toast-notification): assert `fullWidth` prop * docs(toast-notification): add "Full width" example
This commit is contained in:
parent
b04a281939
commit
8fea168ffd
6 changed files with 45 additions and 12 deletions
|
@ -62,6 +62,13 @@ export interface ToastNotificationProps
|
|||
* @default false
|
||||
*/
|
||||
hideCloseButton?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` for the notification to span
|
||||
* the full width of its containing element.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
}
|
||||
|
||||
export default class ToastNotification extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue