@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
21 lines (20 loc) • 663 B
TypeScript
/**
* Common props for layout slots.
*
* Does not include `children`, because we want to provide tailored JSDocs for each layout slot.
*/
export type CommonSlotProps = {
/**
* The label for this slot's skip link. Defaults to the slot's `label` value.
*/
skipLinkLabel?: string;
/**
* The `id` attribute of the slot. Used to connect the layout slot's skip link to the layout element.
* If not provided, a unique ID will be generated.
*/
id?: string;
/**
* A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
*/
testId?: string;
};