shadcn registry component

Family trees that know who everyone is to you.

A vertical, generation-layered tree built from shadcn cards. Pick a person and every other card tells you how they are related.

npx shadcn@latest add https://shadcn-family-tree.ryck.dev/r/family-tree.json
Open the playground
Gen 1
Gen 2
Gen 3
Gen 4
Walter Hollis
1931 – †2009 (78)
grandfatherBristol, UK
Marguerite Hollis
“Margo” · 1934 – †2018 (84)
grandmotherBristol, UK
Olufemi Adeyemi
1929 – †2001 (72)
Yetunde Adeyemi
1936 (90)
Colin Hollis
1958 (68)
Rosalind Vance
1960 (66)
Sunita Rao
1966 (60)
step-motherManchester, UK
Helena Hollis
1962 (64)
Tunde Adeyemi
1961 (65)
uncle-in-lawLondon, UK
Bisi Adeyemi
1964 (62)
Iris Hollis
“Ri” · 1984 (42)
Mateo Ferreira
1982 (44)
husbandLisbon, PT
Dev Hollis
2001 (25)
half-brotherManchester, UK
Ayo Adeyemi-Hollis
1989 (37)
first cousinBerlin, DE
Nkem Adeyemi-Hollis
“Kem” · 1992 (34)
first cousinBerlin, DE
Jo Lindqvist
1991 (35)
first cousin-in-lawBerlin, DE
Femi Okafor
1990 (36)
Sofia Ferreira
2012 (14)
daughterLisbon, PT
Luca Ferreira
2015 (11)
Esme Lindqvist
2021 (5)
first cousin once removedBerlin, DE

20 people across 4 generations. Select a person to see how everyone is related to them, then use the arrow keys to move between parents, children and siblings.

Drag to pan, scroll to zoom, click a card to view the family through their eyes.

Generation-layered

Every person is placed on the row their generation belongs to, and each couple sits centred over the children hanging below them.

Relationships, calculated

Click anyone and the whole tree re-labels itself around them — second cousin twice removed, step-mother, brother-in-law, all derived from the graph.

Colour-coded lines

The four grandparent lines of whoever you are viewing as get their own hue, so the palette always answers: which side of the family is this?

Zero dependencies

The layout, the kinship calculus and the pan/zoom are all in the source you install. No graph library, no canvas runtime.