ns-slot-picker
#
IntroductionThe
ns-slot-picker
allows you to select a suitable time slot from a single date or multiple dates and times.
If you require your customers to select a time slot, the ns-slot-picker
component is ideal. A typical use would be for booking appointments. You can display time slots for a single day or multiple days. Use it either by itself or in conjunction with ns-appointment-picker.
#
Best practice๐ Do's | ๐ Don'ts |
---|---|
Use when the customer needs to select a specific appointment slot from a known selection of dates | Use this when there are many (more than 5) dates to choose from, use ns-appointment-picker |
Use to present a number of suitable slots in advance to a customer | |
Use to help a customer find the soonest appointment time when there is poor availability |
#
UsageHere's an example of how you can use the ns-slot-picker
component in combination with headings and calls-to-action (CTAs):
#
SpecificationAttribute | Type | Default | Options | Description |
---|---|---|---|---|
heading | string | โโ | The heading of the slot picker. | |
slotdata | array | Array of objects representing dates. |
Event | Description |
---|---|
change | Dispatched when a specific slot is selected |
#
Slot DataThe slotData array should consist of objects containing a date property and a slots property.
date: String - eg. 2020-01-28 (28th January 2020) slots: Array of objects with a name and value property
#
Component placementThe ns-slot-picker component can be used in the following components:
#
Feedback- Do you have insights or concerns to share? You can raise an issue via Github bugs.
- See all the issues already raised via Github issues.
๐ฉ ๐ ๐ฆ If you have any questions, contact us on Microsoft Teams in the Nucleus Design System channels.