northants-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
33 lines (32 loc) • 690 B
TypeScript
export interface ToggleButtonsProps {
/**
* An array of toggle buttons
*/
buttons: ToggleButtonProps[];
/**
* Set the default active button
*/
defaultButton?: number;
/**
* Should the buttons have top margin
*/
hasTopMargin?: boolean;
}
export interface ToggleButtonProps {
/**
* The optional aria-label text used to describe the button to screen readers
*/
ariaLabel?: string;
/**
* The button label text
*/
label: string;
/**
* The optional title for the button
*/
title?: string;
/**
* The onClick function when the button is pressed
*/
onClick?: () => void;
}