Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Social Links Banner Block for React

A one-line follow strip for an indie game studio: a real list of five plain links separated by dots drawn in CSS, with a quiet arrow that appears on hover and focus.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A social links banner for React with Base UI: "Follow Marlinwise" and a row of five plain links, Feed, Source, Chat, Videos and RSS, centred between the page's rails under a top rule. There are no icons, no buttons and no network names; the links say what they are. The row is a real list, and the dots between the links are drawn by each item's ::after as an empty box, so a screen reader hears a list of five links and no punctuation, and the dots can never be selected or copied. On a desktop a small arrow appears after a link on hover and on keyboard focus, in the gap where the dot is not, and it turns around in right-to-left layouts. The line is 44 pixels tall on a desktop and two lines on a phone, with the label on the first and the list on the second. It follows the theme in light and dark. For studios, newsletters and open-source projects whose footers are too far away.

FAQ

Why are the dots drawn in CSS?

A text "·" between links would be read aloud by some screen readers and copied with the text. Here each dot is a three-pixel round box on the list item's ::after with no content, so it is only paint. It is hidden after the last item with last:after:hidden.

Do the links open in a new tab?

Not in the demo, because its links go to #. The arrow is there to say "this leaves the page" for links to other sites, so for those add target="_blank" and rel="noopener" and a visually hidden "(opens in a new tab)" after the name. For links inside your own site, remove the arrow.

What about touch screens and small widths?

Hover doesn't exist on touch, so the arrow is hidden below the small breakpoint and the dots tighten, which keeps the five links on one line at 320 pixels. Keyboard focus on a wide screen still shows the arrow and a focus ring. Each link is 24 pixels tall or more, and the dots keep them apart.

How does it line up with my navbar and hero?

The section is full width and the line sits in the same max-w-6xl page column as every block. Its Guides layer draws the column's rails and one rule along the top with a plus on each crossing, and no bottom rule: the block below draws that line, so a stack never doubles it.

  • Pro

    A plain policy notice for a payroll service: one centred paragraph and one underlined link between the page rails, with no tint, icon, button or dismiss.

  • Pro

    A one-line shortcut hint for a text editor, aligned to the start: three shortcuts read as a sentence, each a key cap and its verb, and a link to the full list.

  • Pro

    A one-line shortcut hint for a docs app: key caps drawn inline that read Command K on a Mac and Ctrl K everywhere else, and an underlined link to all shortcuts.

  • Pro

    An unread-messages bar for a team messaging app: a dot, a rolling count, a link to the inbox and a Mark all read button that rolls the count to zero.

  • Pro

    A slim announcement strip for a writing app's release: one centred line with the version, the news and an underlined link, and a ghost button that folds the strip away.

  • Pro

    A launch band for a design tool: a tinted strip with a centred line, a Launch week chip whose outline a light sweeps three times, and a link to the keynote.