Maps

Directions with a map and hours

Directions: a full-width Yandex Map with a pin and a card on top with the address, hours by day, landmarks (metro, parking, entrance) and “Build a route” and phone buttons. Works without a key via the stock widget.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • title, address, latitude, longitude, zoom, hours, details, phone, phoneHref, routeLabel
  • apiKey, providerLabel
  • accent and background, tone

Built from

The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Directions with a map and hours — Directions: a full-width Yandex Map with a pin and a card on top with the address, hours by day, landmarks (metro, parking, entrance) and “Build a route” and phone buttons. Works without a key via the stock widget.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/map-005?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Map005
  title="20 Bolshaya Pushkarskaya"
  address="St Petersburg, 20 Bolshaya Pushkarskaya, courtyard entrance"
  latitude={59.9585}
  longitude={30.3085}
  hours={[{ days: "Mon–Thu", time: "12:00–23:00" }, { days: "Fri–Sat", time: "12:00–01:00" }]}
  details={["Gorkovskaya metro — 7 minutes on foot", "Courtyard parking by booking"]}
  phone="+7 812 305-00-40"
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Theme
tone · default: auto
Title
title · default: 20 Bolshaya Pushkarskaya
Zoom
zoom · default: 16
Accent
accent · default: theme colour
Background
background · default: theme colour

Used in scenarios

FAQ

How do I add Directions with a map and hours with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Directions with a map and hours depend on?
No npm packages beyond React and Tailwind CSS. It also installs catalog components: card-137.
What can I change in Directions with a map and hours?
Adapt: title, address, latitude, longitude, zoom, hours, details, phone, phoneHref, routeLabel; apiKey, providerLabel; accent and background, tone. Keep as installed: the card-137 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; a real Yandex Map instead of an image: the widget without a key, the JS API with one; the card over the map with hours by day and a route button — the answer to “how do I get there”.
Is Directions with a map and hours free?
The preview is open to everyone; the source is available with a PRO subscription.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/map-005.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports card-137 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm dependencies, “use client”. Without apiKey — an <iframe> of the Yandex Maps widget with a pt pin and the theme scheme; with apiKey — JS API v3 (loadScript once per URL, YMap, layers, YMapMarker with an accent pin). In auto the map theme follows the page via a MutationObserver. The card sits under the map when narrow, from 56rem (container query) absolute on the left over the map with scrolling. Hours are a <dl> grid auto/1fr with tabular-nums, the address in <address>. Palette --vibeui-map-005-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; Playfair Display and Manrope via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.

Tags

  • restaurant
  • cafe
  • bar
  • food
  • menu
  • dining
  • map
  • yandex
  • directions
  • hours
  • address
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…