Skip to content

How to add a box around an icon #813

Answered by richbachman
pradyuk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pradyuk

The box should be using a Menu component. This might be a good place to start: https://paste.twilio.design/components/menu#choosing-a-menu-trigger

The MenuButton is basically a wrapper around our Button component. Although not fully documented, we do have a variant named inverse for button. So you're MenuButton code might look something like this:

<MenuButton {...menu} variant="inverse" size="icon">
    <ChevronExpandIcon
        decorative={false}
        title="Choose account"
        color="colorTextInverse"
    />
</MenuButton>

Let us know if that's helpful.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pradyuk
Comment options

@richbachman
Comment options

@pradyuk
Comment options

Answer selected by pradyuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants