Get StartedComponentsStylingThemingMath & Science
MCP

Science

Periodic Table

The 18-column periodic table with separate lanthanide and actinide rows and a detail panel. Cells are colored by category.

It accepts any list of elements with the PeriodicElement shape. ELEMENTS from @indoku/science fits as-is (all 118 elements, computed period, group and category).

Markdown

Import

tsx
import { PeriodicTable } from "@indoku/ui"import { ELEMENTS } from "@indoku/science"

Examples

Basic usage

H
Hydrogen #1
1.008 u · nonmetal

Controlled selection

Read the selected element and compute with it.

Fe
Iron #26
55.845 u · transition metal
Iron (Fe) · Z = 26 · molar mass 55.845 g/mol

Props

PeriodicTable

PropTypeDefaultDescription
elements*readonly PeriodicElement[]–
onSelect(element: PeriodicElement) => void–Called when a cell is clicked.
selectednumber–Controlled selected atomic number.

* required. Style props and HTML attributes are accepted as well.

Accessibility

  • Cells are buttons with the element name as label.

Created by @indokudev