Customization
You can customize accent colors inside the calendar.
Theming
Theming is set inside ZaptimeConfig
as theme
key.
ts
const config = {
theme: {
....
}
}
ts
interface ZaptimeTheme {
mode?: "light" | "dark";
borderRadius?: string; // 4px or full
colors?: {
accentLight?: string;
accentBase?: string;
accentDark?: string;
};
}
Profile image
You can set a profile image to be displayed inside the calendar.
ts
const config = {
profileImage: "http://test.test/my-image.png",
};
Compact mode
Default is false
ts
const config = {
compact: true | false,
};
External booking
Enables or disables built-in booking form.
Default is false
ts
const config = {
externalBooking: true | false,
};
Redirect after Booking
Redirects after booking to desired URL.
ts
const config = {
redirectAfterBookingUrl: "https://example.com/success-page",
};
Hide location
Calendar automatically shows where will the event take place. Options are Google Meet, address, phone call, and more.
Default is false
ts
const config = {
hideLocation: true,
};