shadcn.io is not affiliated with official shadcn/ui
Social Icons Footer Block for React
A two-row footer: a wordmark and tagline beside five social icon buttons with tooltips, and a ruled band with the copyright and the policy links.
Installation
Overview
A simple footer for React with Base UI, for an app or a personal site where people mostly want to find you elsewhere. The first row has the wordmark and one tagline at the start and, at the end, five social icon buttons: each is a ghost icon button that is a real link, with its network named for screen readers and in a tooltip on hover or keyboard focus. A band under it, ruled from the rails by Guides with a + where it meets them, carries the copyright at the start and the policy links, in a nav labelled Footer, at the end. It ends the page, so it draws no closing rule. On a phone both rows stack. The icons are generic glyphs, since the icon set has no brand logos.
FAQ
How do I change the social links?
Edit the SOCIAL array: each entry is an icon, a label and an href. The label is both the tooltip and the accessible name, so keep it as the network's name. To use the networks' own logos, swap the icon for your brand icons. Five fit comfortably beside the wordmark; add more and they wrap.
How do the tooltips work, and what about touch?
Each icon opens a tooltip with its name on hover and on keyboard focus, using the library's own tooltip. The tooltip trigger renders the icon link itself, so there is no wrapper element. On touch screens the tooltip does not open, but the name is also in the link's hidden text, so screen readers and voice control still find it.
How do keyboard and screen reader users get around?
The block is a footer, the page's content-info landmark when placed outside main. The social links are a list named Follow Quirk, and the policy links sit in a nav named Footer. Every icon is a link in the tab order and shows the theme's focus ring.
Related
- Pro
Stacked Bands Footer
Slim and minimalA footer in three ruled bands: the wordmark, a sentence and the shop's pages; five social links with their names; and the legal row.
- Pro
One Row Footer
Slim and minimalThe smallest footer: one row on the spine with a wordmark and a copyright line at the start and four inline links with a drawn underline at the end.
- Pro
Link Columns Footer
Link gridsThe classic link-column footer for an email API: a brand column with the wordmark, one sentence and four social links, four groups of links behind a split divider, and a legal band with the copyright and the policy links.
- Pro
Centered Plumb Line Footer
Slim and minimalA centred footer in three tiers: a hairline hanging from the top rule to a round wordmark mark, a row of six links, and the copyright line.
- Pro
Table of Contents Footer
Link gridsAn even two-column footer: the wordmark, description, social icons and legal line behind a divider from a numbered, two-column list of eight links.
- Pro
Latest Posts Footer
Social proofA footer showing the latest post from three channels as cells that share their hairlines, each a drawn mark, a time, one sentence and a View post line, with a Follow row of counts, then the wordmark and one row of links.