Icons and Images
Overview
There are a lot of places in views where images or icons can be displayed
Icons
Icons can be used in all places where regular images are accepted
- src/icon.tsx
- gauntlet.toml
Image from URL
- src/url.tsx
- gauntlet.toml
import { ReactElement } from "react";
import { Detail } from "@project-gauntlet/api/components";
export default function Example(): ReactElement {
return (
<Detail>
<Detail.Content>
<Detail.Content.Image source={{ url: "https://github.com/project-gauntlet/gauntlet/blob/main/docs/logo.png?raw=true" }}/>
</Detail.Content>
</Detail>
)
}
