SidebarNavigationItem: Is LinkExternalIcon automatically provided? #3581
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. The Here's an example of how you can do this: import {SidebarNavigationItem} from '@twilio-paste/sidebar-navigation';
import {LinkExternalIcon} from '@twilio-paste/icons/esm/LinkExternalIcon';
<SidebarNavigationItem href="https://external-link.com" icon={<LinkExternalIcon decorative />}>
External Link
</SidebarNavigationItem> In this example, the Please note that if an external URL is used for the Here are some similar discussions:
|
Beta Was this translation helpful? Give feedback.
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary.
The
SidebarNavigationItem
component does not automatically provide the LinkExternalIcon for external links. If you want to display an icon, you need to set theicon
prop to any valid Paste Icon.Here's an example of how you can do this:
In this example, …