@nnc-digital/nnc-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.
36 lines (35 loc) • 987 B
TypeScript
export interface ColumnProps {
/**
* Available column sizes for small screen
*/
small?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
/**
* Available column sizes for small screen
*/
medium?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
/**
* Available column sizes for small screen
*/
large?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
/**
* Should the column have padding
*/
hasPadding?: boolean;
/**
* Option to display the border
* Should only used for demonstrating grid
*/
hasBorder?: boolean;
/**
* Is the column within a list
*/
isList?: boolean;
/**
* Any optional classes to add to the column
*/
classes?: string;
/**
* The contents of the column
*/
children?: React.ReactNode;
}