www: allow deeplinking to components (#1134)

Adds an ID to the component titles to allow deep-linking to components.

http://localhost:8000/components#Carousel

http://localhost:8000/components#Icons
This commit is contained in:
Taylor Young
2023-05-12 17:40:24 +02:00
committed by GitHub
parent 96b89d2a05
commit 8f7510fc99
+1 -1
View File
@@ -23,7 +23,7 @@ interface SectionProps {
function Section(props: SectionProps) {
return (
<div>
<h2 class="text-2xl font-bold py-2">
<h2 class="text-2xl font-bold py-2" id={props.title}>
{props.title}
{props.island && (
<span class="text-sm font-normal inline-block bg-green-200 rounded px-2 mx-2">