feat(f36-ai-components): add AIChatLayout component#3203
Conversation
…ne of a title or icon
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| <svg xmlns="http://www.w3.org/2000/svg" width={0} height={0}> | ||
| <defs> | ||
| <linearGradient | ||
| id="icon-gradient" | ||
| gradientTransform="rotate(46.64 .5 .5)" | ||
| gradientUnits="objectBoundingBox" | ||
| > | ||
| <stop offset="19.41%" stopColor="#1872E5" /> | ||
| <stop offset="38.04%" stopColor="#8C2EEA" /> | ||
| <stop offset="56.68%" stopColor="#E65325" /> | ||
| <stop offset="75.31%" stopColor="#EAAF09" /> | ||
| </linearGradient> | ||
| </defs> | ||
| </svg> |
There was a problem hiding this comment.
Moe Shaaban (@mshaaban0) / @contentful/team-ui-foundation Do you have any advice on where best to put this SVG? It's used to apply a gradient to the icon (see aiGradientIcon in the styles)? I previously had tried to avoid needing to place it in the DOM, and had something working with a CSS fill with a data URL, however it didn't work with Safari.
There was a problem hiding this comment.
I think it's fine to keep it in it's own file.. I recommend making it an icon with icon component helper, See https://github.com/contentful/forma-36/tree/main/packages/components/icons/src/custom
Moe Shaaban (mshaaban0)
left a comment
There was a problem hiding this comment.
Very Nice 🥇
6a44dfe
into
PIC-694-forma36-create-aichatlayout-component
…tlayout-component-implementation feat(f36-ai-components): add AIChatLayout component
Purpose of PR
This PR continues from #3202 by adding the
AIChatLayoutcomponent.Notes
PR Checklist
readme.mdfile(s)