✨ Announcing our seed funding led by Lux Capital! Read more about it on our blog
DocsBlogChangelog

Search documentation...

/

Star

12k+

[ Learn ]

[ Concepts ]

[ Reference ]

Assets


Static files such as images and stylesheets can be placed in assets/ folder of the project. These files can be referenced within your app.

Referencing Assets


To reference an image in the assets/ simply pass the relative path as a prop.
For example, you can store your logo in your assets folder:
assets
└── Reflex.svg
Then you can display it using a rx.image component:
rx.image(src="/Reflex.svg", width="5em")

Favicon


The favicon is the small icon that appears in the browser tab.
You can add a favicon.ico file to the assets/ folder to change the favicon.
← PagesState Overview →

Copyright © 2023 Pynecone, Inc.