Skip to content

Store editor

Service settings section

Booking and scheduling rules for a service.
Available
Needs mock props

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Service settings section

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
depositAmount*string—Bare amount as typed — no currency symbol, no formatting.
onDepositAmountChange*(amount: string) => void—Undocumented — add TSDoc to the prop in the library.
currencySymbolstring"$"Currency symbol sitting inside the field. BTS bills in AUD, so this is "$" everywhere today; it is a prop so a story can show the prefix is not baked in.
labelstring"Deposit amount"Field label.
descriptionstring"Optional upfront deposit required at time of booking"Helper line under the label.
placeholderstring"0.00"Undocumented — add TSDoc to the prop in the library.
disabledboolean—Renders the field non-editable — e.g. deposits locked after first booking.
classNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/store/editor/sections/ServiceSettingsSection.tsx
Portability
Needs its app dependencies replaced by props before it renders in isolation.