# Simple Centered

> A slim bar with centered text and a single dismiss control. Share a short notice like free shipping or a new feature across the top of any page.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-announcement-banners-simple-centered).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-announcement-banners-simple-centered
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-announcement-banners-simple-centered-light-ab109a4db51730f9.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-announcement-banners-simple-centered.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-announcement-banners-simple-centered.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Files

### `components/blocks/marketing/announcement-banners/simple-centered.tsx`

```tsx
export default function SimpleCentered() {
  return (
    <div className="bg-muted">
      <div className="container mx-auto px-4 md:px-6 2xl:max-w-[1400px]">
        <div className="flex items-center justify-between gap-x-6 p-4">
          <div className="flex w-full items-center gap-x-4 text-sm">
            <p className="flex-1 text-center">
              <a
                href="#"
                className="font-semibold underline-offset-4 hover:underline"
              >
                Introducing our new UI blocks
              </a>
              <span className="hidden sm:inline">
                {' '}
                — Get started with 50+ new components.
              </span>
            </p>
          </div>
        </div>
      </div>
    </div>
  );
}
```
