Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
    • Anchors
    • Box
    • Col
    • Container
    • ContainerNext
    • FullPageLayout
    • Grid
    • HStack
    • Header
    • Header
    • LayoutGrid
    • Navigation
    • Pagination
    • Row
    • Section
    • Spacer
    • TabList
    • TabList
    • Tabs
    • VStack
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Layout & containers
  • Anchors

Anchors

In-page links to the sections of a long page. Can flag a section with an error or warning state.

Health
Component health
Source
View on Github
Design
View Figma
Storybook
View in Storybook
Playground
No Example
Accessibility

not-compliant

Platform
Web
Accessibility issues
The html semantics misses the `nav` and `<ul>`/`<li>` elements.
  • Overview
  • Props
  • Figma

Usage​

First sectionSecond sectionThird section

Error & warning states​

You can also catch the attention on section by setting an error or warning state.

Error section linkActive error section linkWarning section linkActive warning section link

Playground​

Loading...

Anchors props

NameTypeDefault ValueDescriptionUsage count
children*ReactNodeArray of `Anchor.Item` elements
stickybooleanundefinedfalse
stickyOffsetTopnumberundefined24Offset to adjust the top position when the element becomes sticky
Edit this page
Previous
TextInput
Next
Box
  • Usage
  • Error & warning states
  • Playground