← All proposals

Milestone

Net-new, in two parts, in their own family so "timeline" keeps one meaning (the log).

Net-new componentOpen in Storybook

proposals/Milestone/milestone-list-context.ts19 lines · View on GitHub
import { createContext } from 'react';

import type { MilestoneVariant } from './Milestone';

export interface MilestoneListContextValue {
	/**
	 * whether milestones are on a card (`card`) or flat.
	 */
	variant?: MilestoneVariant;
}

/**
 * What a `MilestoneList` passes down to its `Milestone`s, which can
 * override it.
 */
export const MilestoneListContext = createContext<MilestoneListContextValue>(
	{},
);