While working in Chromatic, I started running into some issues using the Cardinal component in Typescript with emotion. The main piece of this PR is to type Cardinal as a FunctionComponent. Based on usage across repositories, I also went ahead and configured which props should be optional.
📦 Published PR as canary version: 7.12.3-canary.405.cde7bcd.0
:sparkles: Test out this PR locally via:
```bash
npm install @storybook/design-system@7.12.3-canary.405.cde7bcd.0
# or
yarn add @storybook/design-system@7.12.3-canary.405.cde7bcd.0
```
While working in Chromatic, I started running into some issues using the Cardinal component in Typescript with emotion. The main piece of this PR is to type Cardinal as a
FunctionComponent
. Based on usage across repositories, I also went ahead and configured which props should be optional.📦 Published PR as canary version:
7.12.3-canary.405.cde7bcd.0
:sparkles: Test out this PR locally via: ```bash npm install @storybook/design-system@7.12.3-canary.405.cde7bcd.0 # or yarn add @storybook/design-system@7.12.3-canary.405.cde7bcd.0 ```