From 8a66130acb002855f5d3004fc1afe5281d165e5f Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Wed, 14 Apr 2021 13:06:03 -0400 Subject: [PATCH] Update EmailHeader stories --- .../EmailHeader/EmailHeader.stories.mdx | 90 +++++++++++-------- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/src/components/EmailHeader/EmailHeader.stories.mdx b/src/components/EmailHeader/EmailHeader.stories.mdx index 76c852b..c78b4ec 100644 --- a/src/components/EmailHeader/EmailHeader.stories.mdx +++ b/src/components/EmailHeader/EmailHeader.stories.mdx @@ -1,52 +1,66 @@ -import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; +import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks'; import EmailHeader from './EmailHeader'; -Displays an email header with name, email, time sent, and recipients if present. - - + -Default usage, without props. +Displays an email header with name, email, time sent, and recipients if present. +### Basic Usage w/o Props - - {args => } + + {args => } - - -With `datetime`, `from_name` and `from_email` props. When `first_name` is passed, the [UserAvatar](/?path=/story/authprovider--page) will display the first letter of the name. + +### Single Sender and Recipient +When the `first_name` prop is passed, the user's avatar is replaced with the first letter of that prop. - - {args => } + + {args => } -You can add to/cc data by passing `to` and `cc` props. - +### To and Cc Fields - + {args => } - \ No newline at end of file + + + \ No newline at end of file