An opinionated toast component for React.
Set line height (#53)
Emil Kowalskic11cd3200dd6
diff --git a/src/styles.css b/src/styles.cssindex b1ea016..1adc4e8 100644--- a/src/styles.css+++ b/src/styles.css@@ -100,6 +100,7 @@[data-sonner-toast] [data-title] {font-weight: 500;+ line-height: 1.5;color: inherit;}diff --git a/website/src/components/Hero/index.tsx b/website/src/components/Hero/index.tsxindex d9824a7..28c77b9 100644--- a/website/src/components/Hero/index.tsx+++ b/website/src/components/Hero/index.tsx@@ -19,10 +19,6 @@ export const Hero = () => {toast('Sonner', {description: 'An opinionated toast component for React.',});- toast('Event has been created', {- onDismiss: (t) => console.log(`Toast with id ${t.id} has been dismissed`),- onAutoClose: (t) => console.log(`Toast with id ${t.id} has been closed automatically`),- });}}className={styles.button}>