mirror of
https://github.com/iconify/iconify.git
synced 2025-01-12 01:45:41 +00:00
Update Next.js demo
This commit is contained in:
parent
52674f0967
commit
b12de93aaa
@ -85,8 +85,7 @@ export default function Home() {
|
||||
<section className="demo">
|
||||
<h1>Iconify demo</h1>
|
||||
<p>
|
||||
Home icons (generated on client):{' '}
|
||||
<InlineIcon icon="mdi:home" />
|
||||
Home icons: <InlineIcon icon="mdi:home" />
|
||||
<InlineIcon
|
||||
icon="mdi:home-outline"
|
||||
style={{ color: '#c40' }}
|
||||
@ -94,15 +93,9 @@ export default function Home() {
|
||||
<InlineIcon icon="flat-color-icons:home" />
|
||||
</p>
|
||||
<p>
|
||||
Icons to test unique ids (generated on server):{' '}
|
||||
<InlineIcon icon={iconDataWithID} id="medal1" />
|
||||
<InlineIcon icon={iconDataWithID} id="medal2" />
|
||||
<small>
|
||||
Due to Next.js behavior, icons that use IDs should
|
||||
have "id" attribute or Next.js will warn that
|
||||
content generated on server and client does not
|
||||
match.
|
||||
</small>
|
||||
Icons to test unique ids:{' '}
|
||||
<InlineIcon icon={iconDataWithID} />
|
||||
<InlineIcon icon={iconDataWithID} />
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
|
Loading…
Reference in New Issue
Block a user