Skip to content

SidebarNavigationItem: Is LinkExternalIcon automatically provided? #3581

Discussion options

You must be logged in to vote

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 the icon prop to any valid Paste Icon.

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, …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SiTaggart
Comment options

Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants