Reservine Docs

The reservation button on your website

Add the script and one reservine-button element to your website. Booking opens directly on your page as a modal window, on mobile as a slide-up panel.

The reservation button on your website

Enter two values, pick a mode and copy the finished code. Booking then opens directly on your website: on a computer as a modal window, on mobile as a slide-up panel. The visitor never leaves your site.

Where to find it

Settings → Reservation button (Nastavení → Rezervační tlačítko). The page has two parts:

  • Share link: a link to the booking page for a branch, optionally with a pre-selected service or employee, plus a QR code for download (SVG/PNG) and sharing to social networks.
  • Integration: the button generator. You pick the type (Button or Custom button), text, style, size, width, colour and corner radius, and copy the Header script and the HTML embed code.

You can also write the same code by hand following this page.

The smallest working example

<script defer src="https://cdn.reservine.io/sdk/v1.js"></script>

<reservine-button partner="my-company" text="Book now"></reservine-button>

Replace a single value: my-company is the name of your Reservine, that is, the part of the booking page address before .reservine.me. For https://my-company.reservine.me you enter my-company.

The button renders only once the script has loaded. So the text around it does not jump, reserve its height by size (size):

reservine-button:not(:defined) { display: inline-block; height: 3rem; } /* medium, the default */
reservine-button[size="small"]:not(:defined) { height: 2.5rem; }
reservine-button[size="large"]:not(:defined) { height: 3.5rem; }

Steps

1. Enter the address or name of your Reservine

The name is the part of the address before .reservine.me. Optionally add the branch ID with the branch attribute; you will find it in the admin in Settings → Reservation button (the For branch selection). With a single branch leave the attribute out.

2. Pick the embedding method

Use my existing button (recommended). Keeps your website's look, Reservine adds only the behaviour. Put your element inside and add aswrapper="true":

<script defer src="https://cdn.reservine.io/sdk/v1.js"></script>

<reservine-button
  aswrapper="true"
  partner="my-company"
  branch="12"
>
  <span class="your-button-class">Your button text</span>
</reservine-button>

Create a new Reservine button. Reservine renders a finished button whose look you fine-tune with the appearance, size, width, color and borderradius attributes. Do not write default values into the code:

<reservine-button
  partner="my-company"
  branch="12"
  text="Book a slot"
  appearance="outline"
  size="large"
  color="#0ea5e9"
></reservine-button>

3. Copy the code to your website

Paste the snippet into your page's HTML. The script is needed only once per page, even if you have several buttons on it. If a developer or an AI agent manages your website, send them this page and your values.

In plain HTML write attributes in lowercase (reservationurl, borderradius, aswrapper). Framework adapters use camelCase (reservationUrl, borderRadius, asWrapper).

Attributes of the <reservine-button> element

Common to both modes

AttributeTypeDefaultDescription
partnerstring""The name of your Reservine (the part of the address before .reservine.me). Builds https://{partner}.reservine.me. Takes precedence over reservationurl.
reservationurlstring""The full address of the booking page. Use it only if the button does not point at a standard *.reservine.me address.
branchnumber–Branch ID. Adds /branch/{id} to the address, the right branch opens directly.
servicenumber–Pre-selects a service.
employeenumber–Pre-selects an employee.
reservinethemestring""The identifier of a Reservine colour theme passed to the booking page.
showgalleryboolean–Forces the gallery to be shown or hidden. Without the attribute your booking page's setting applies.
disableuseofadjustedfontsizebooleanfalseTurns off the automatic font size adjustment based on the page the button is embedded in.
aswrapperbooleanfalseWrapper mode: your own embedded element is shown and Reservine supplies only the behaviour.

Only for the generated button

AttributeTypeDefaultDescription
textstring""The visible button text.
appearanceprimary · text · outlineprimaryThe button look.
sizesmall · medium · largemediumHeight, padding and font size.
widthauto · fullautoWidth by content, or across the whole parent element.
colorhex colour#ffffffThe base colour (three- or six-digit hex); the text colour and hover shade are derived.
borderradiusstring6pxCorner radius in px; the SDK adds the px unit if missing.

Boolean attributes are left out when they should be false. Write enabling explicitly, e.g. aswrapper="true".

Methods and event

APIKindDescription
element.open()methodOpens the booking modal / mobile panel.
element.close()methodCloses the booking modal / mobile panel.
element.openedpropertyThe current open state (boolean). In the browser prefer the open()/close() methods.
reservine-open-change eventeventCustomEvent<{ open: boolean }>, fires on every open and close; read the state from event.detail.open.
const button = document.querySelector('reservine-button');
button.addEventListener('reservine-open-change', (event) => {
  console.log('open:', event.detail.open);
});

Checks after deployment

  1. The button opens booking for the right branch (and the pre-selected service, if any).
  2. On mobile the slide-up panel opens and can be closed.
  3. The https://cdn.reservine.io/sdk/v1.js script is on the page only once.

Frequently asked questions

Does the button work on WordPress / Webflow / Wix? Yes. All you need is the option to insert custom HTML. On WordPress use the Custom HTML block, for example.

Can I have several buttons on the website? Yes. The header script is needed once; you can insert any number of <reservine-button> elements; each can point at a different branch or pre-select a different service.

Does booking open in a new window? No. Booking opens directly on your page: on a computer as a modal window, on mobile as a slide-up panel.

  • Custom domain: if the booking page runs on your domain, use reservationurl.
  • Ordering flow: what the visitor sees after clicking.

On this page