Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra committed Jan 23, 2024
1 parent b5bc7ac commit 06cfd69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/blade/src/components/Toast/_decisions/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,22 @@ type Toast = {
* @default `informational`
*/
type: 'informational' | 'promotional';

/**
* @default `neutral`
*/
color: 'neutral' | 'positive' | 'negative' | 'warning' | 'information'

/**
* If the type is `promotional`, the content will be `React.ReactNode`
*/
content: string | React.ReactNode;

/**
* Can be used to render an icon
*/
leading?: IconComponent;

/**
* If true, the toast will be dismissed after few seconds
*
Expand All @@ -101,10 +105,12 @@ type Toast = {
* @default false
*/
autoDismiss?: boolean;

/**
* Called when the toast is dismissed or duration runs out
*/
onDismissButtonClick?: () => void;

/**
* Primary action of toast
*/
Expand All @@ -113,6 +119,7 @@ type Toast = {
onClick?: () => void;
isLoading? boolean;
}

/**
* Forwarded to react-hot-toast
*
Expand All @@ -132,6 +139,7 @@ type useToastReturnType = {
* @returns id of the toast
*/
showToast: (toast: Toast) => string;

/**
* id of the toast to be dismissed
*
Expand Down

0 comments on commit 06cfd69

Please sign in to comment.