Skip to main content

Milestone

Milestone allows for the selection of a specific event date with a label. The shape of the options being passed in will determine whether a PlusMinus control appears to specify a duration, age, or some other value.

Options can also specify a milestoneDate which will be used to calculate a date based on the selected duration.

The Start component does not provide validation.

Result
Loading...
Live Editor

With specific date ranges on a NumberField

You can also specify a custom description prefix to individual options.

Result
Loading...
Live Editor

Or within the option itself if the props should be different. NumberField props defined in the option will always override over NumberField props.

Result
Loading...
Live Editor

Analytics

The Milestone component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'Start',
actions: {
onChange: { type: 'START_CHANGE', payload: 'Change' },
},
};

Props