Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Including images on pane#1092

Discussion options

Hi there!! My question is: How can i insert an image or icon in pane component?

You must be logged in to vote

Hi@edgarjoserojaslopez, The way I do it for now is like this:

<Pane is='img' src='path/to/your/image.jpg' alt='Image' />

Not sure if this is the right way, but it works for me.

Replies: 1 comment 1 reply

Comment options

Hi@edgarjoserojaslopez, The way I do it for now is like this:

<Pane is='img' src='path/to/your/image.jpg' alt='Image' />

Not sure if this is the right way, but it works for me.

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

Yep! You can also useImage if you don't need Pane specifically:

import{Image}from'evergreen-ui'<Imagesrc="pupdanceparty.gif"alt="Puppies dancing"/>

Either approach (Image orPane is="img" which is what Image does under the hood) will work fineand you get all of the ui-box css props available directly on the component:

<Imagesrc="pupdanceparty.gif"alt="Puppies dancing"marginTop={32}/>
Answer selected byakleiner2
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
3 participants
@edgarjoserojaslopez@mshwery@cdedreuille

[8]ページ先頭

©2009-2025 Movatter.jp