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
| Attribute | Type | Default | Description |
|---|---|---|---|
partner | string | "" | The name of your Reservine (the part of the address before .reservine.me). Builds https://{partner}.reservine.me. Takes precedence over reservationurl. |
reservationurl | string | "" | The full address of the booking page. Use it only if the button does not point at a standard *.reservine.me address. |
branch | number | – | Branch ID. Adds /branch/{id} to the address, the right branch opens directly. |
service | number | – | Pre-selects a service. |
employee | number | – | Pre-selects an employee. |
reservinetheme | string | "" | The identifier of a Reservine colour theme passed to the booking page. |
showgallery | boolean | – | Forces the gallery to be shown or hidden. Without the attribute your booking page's setting applies. |
disableuseofadjustedfontsize | boolean | false | Turns off the automatic font size adjustment based on the page the button is embedded in. |
aswrapper | boolean | false | Wrapper mode: your own embedded element is shown and Reservine supplies only the behaviour. |
Only for the generated button
| Attribute | Type | Default | Description |
|---|---|---|---|
text | string | "" | The visible button text. |
appearance | primary · text · outline | primary | The button look. |
size | small · medium · large | medium | Height, padding and font size. |
width | auto · full | auto | Width by content, or across the whole parent element. |
color | hex colour | #ffffff | The base colour (three- or six-digit hex); the text colour and hover shade are derived. |
borderradius | string | 6px | Corner 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
| API | Kind | Description |
|---|---|---|
element.open() | method | Opens the booking modal / mobile panel. |
element.close() | method | Closes the booking modal / mobile panel. |
element.opened | property | The current open state (boolean). In the browser prefer the open()/close() methods. |
reservine-open-change event | event | CustomEvent<{ 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
- The button opens booking for the right branch (and the pre-selected service, if any).
- On mobile the slide-up panel opens and can be closed.
- The
https://cdn.reservine.io/sdk/v1.jsscript 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.
Related pages
- Custom domain: if the booking page runs on your domain, use
reservationurl. - Ordering flow: what the visitor sees after clicking.
Smart locks: status and logs
What you find on the Smart locks page – the locks' status per branch, sync, re-applying PINs and the access log.
The membership widget on your website
Add the script and a reservine-memberships element. Your membership plans render directly on your website and the purchase runs in the Reservine checkout with sign-in, Apple Pay and cards.