Toast API
API documentation for Toast component
ToastRoot#
Props#
Defines valid properties in Toast component.
State#
Defines valid state in Toast component.
Exposes#
Defines the methods and properties exposed by Toast component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Toast component.
| name | type | default | description |
|---|---|---|---|
| root | ToastRootPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of Toast component.
| values |
|---|
| ComponentInstance<ToastRootProps, ToastRootState, ToastRootExposes> |
ToastRegion#
Props#
Defines valid properties in ToastRegion component.
Exposes#
Defines the methods and properties exposed by ToastRegion component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastRegion component.
| name | type | default | description |
|---|---|---|---|
| root | ToastRegionPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastRegion component.
| values |
|---|
| ComponentInstance<ToastRegionProps, ToastRegionState, ToastRegionExposes> |
ToastItem#
Props#
Defines valid properties in ToastItem component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastItem component.
| name | type | default | description |
|---|---|---|---|
| root | ToastItemPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastItem component.
| values |
|---|
| ComponentInstance<ToastItemProps, ToastItemState, ToastItemExposes> |
ToastTitle#
Props#
Defines valid properties in ToastTitle component.
Exposes#
Defines the methods and properties exposed by ToastTitle component.
| name | type | default | description |
|---|---|---|---|
| toast | ToastRootInstance | null | The Toast component instance. |
| toastItem | ToastItemInstance | null | The ToastItem component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastTitle component.
| name | type | default | description |
|---|---|---|---|
| root | ToastTitlePassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastTitle component.
| values |
|---|
| ComponentInstance<ToastTitleProps, ToastTitleState, ToastTitleExposes> |
ToastDescription#
Props#
Defines valid properties in ToastDescription component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastDescription component.
| name | type | default | description |
|---|---|---|---|
| root | ToastDescriptionPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastItem component.
| values |
|---|
| ComponentInstance<ToastDescriptionProps, ToastDescriptionState, ToastDescriptionExposes> |
ToastIcon#
Props#
Defines valid properties in ToastIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastIcon component.
| name | type | default | description |
|---|---|---|---|
| root | ToastIconPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastItem component.
| values |
|---|
| ComponentInstance<ToastIconProps, ToastIconState, ToastIconExposes> |
ToastAction#
Props#
Defines valid properties in ToastAction component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastAction component.
| name | type | default | description |
|---|---|---|---|
| root | ToastActionPassThroughType<ButtonHTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastAction component.
| values |
|---|
| ComponentInstance<ToastActionProps, ToastActionState, ToastActionExposes> |
ToastClose#
Props#
Defines valid properties in ToastClose component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ToastClose component.
| name | type | default | description |
|---|---|---|---|
| root | ToastClosePassThroughType<ButtonHTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ToastClose component.
| values |
|---|
| ComponentInstance<ToastCloseProps, ToastCloseState, ToastCloseExposes> |