Question
Ai4Process
Ai4Process
PL
Ai4Process
Posted: Nov 28, 2023
Last activity: Feb 2, 2024
Last activity: 2 Feb 2024 5:23 EST
Solved
Constellation icons are not rendering outside of storybook
Hello, I am creating custom DX component and i have problem with it. I am trying to render plus and trash icons as stated at design.pega.com, yet they render only in StoryBook (in web portal they are missing). Here is part of the code:
import { Flex, DateRangeInput, Button, Icon, Card } from '@pega/cosmos-react-core';
.....
<Button
variant='simple'
label='Icon button link'
icon
aria-label='remove'
....
>
<Icon name='trash' className='trash-icon' />
</Button>
...
Icon does not render here as in any other component that i have created. Can you please advise if i am missing any dependency?
***Edited by Moderator Rupashree to add Capability tags***