An opinionated toast component for React.
Update readme
emilkowalski39e1287f654d
diff --git a/README.md b/README.mdindex a24d9a2..9745b79 100644--- a/README.md+++ b/README.md@@ -90,19 +90,26 @@ toast.promise(() => new Promise((resolve) => setTimeout(resolve, 2000)), {});```+### Custom JSX++You can pass jsx as the first argument instead of a string to render custom jsx while maintaining default styling. You can use the headless version below for a custom, unstyled toast.++```jsx+toast(<div>A custom toast with default styling</div>);+```++## Customization+### HeadlessYou can use `toast.custom` to render an unstyled toast with custom jsx while maintaining the functionality.-```jsx+````jsxtoast.custom((t) => (<div>This is a custom component <button onClick={() => toast.dismiss(t)}>close</button></div>));-```--## Customization### Theme@@ -110,7 +117,7 @@ You can change the theme using the `theme` prop. Default theme is light.```jsx<Toaster theme="dark" />-```+````### Position