For the complete documentation index, see llms.txt. This page is also available as Markdown.

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>
  )
}

Last updated

Was this helpful?