Aragon
AN DAO
Search…
⌃K
Links
Search…
⌃K
Aragon Developer Documentation
🛠
Developers
General Tools
The Basics
Guides
aragonOS
aragonCLI
aragonPM
aragonAPI
aragonUI
Getting started
How to upgrade
BASE
ACTIONS
NAVIGATION
STRUCTURE
DATA ENTRY
VISUALIZATION
FEEDBACK
OVERLAYS
ADVANCES
ButtonBase
FocusVisible
PublicUrl
Redraw
RedrawFromDate
Root
RootPortal
Viewport
aragonDS
Aragon Connect
App Center
Product Tools
📃
GLOSSARY
Aragon Client
Powered By
GitBook
PublicUrl
PublicURL is used to access your local path to aragonUI’s assets (e.g. fonts, etc.), so they load properly. It is mostly used internally.
Usage
import
{
PublicUrl
}
from
'@aragon/ui'
function
App
()
{
return
(
<
PublicUrl
>
{
url
=>
(
<
img
src
=
{
`
${
url
}
/example.png
`
}
/>
)}
</
PublicUrl
>
)
}
Previous
FocusVisible
Next
Redraw
Last modified
6mo ago