StatsHub Docs
Reference

Silk components

Where the @silk-hq/components sheets are used in this repo, and an index into Silk's own documentation.

Silk supplies the sheet primitives behind five components in @statshub/ui-web. Silk's own reference is the source of truth for the API; this page records which of our components use it and links into that reference.

Where it is used

ComponentWhat it is
components/sheet.tsxThe shared base the others compose
components/bottom-sheet.tsxThe standard bottom sheet
components/top-sheet.tsxSheet anchored to the top edge
components/long-sheet.tsxScrollable full-height sheet
components/sheet-with-keyboard.tsxBottom sheet that tracks the on-screen keyboard
components/silk-sidebar.tsxDrawer-style sidebar

The React Native equivalents are unrelated — see ui-native, whose sheets are its own.

Silk's documentation

These links are Notion pages on the Silk workspace

They need an account with access. Silk's public docs are at silkhq.com.

Getting oriented

Guides

Components

ComponentReference
Sheetdocs
SheetStackdocs
AutoFocusTargetdocs
Islanddocs
ExternalOverlaydocs
Scrolldocs
Fixeddocs
VisuallyHiddendocs

Functions and hooks

ExportReference
createComponentIddocs
usePageScrollDatadocs
useClientMediaQuerydocs
updateThemeColordocs
useThemeColorDimmingOverlaydocs
animatedocs

Version history

Reporting problems

Bugs go to Silk's GitHub issues; questions to GitHub discussions.

On this page