@abgov/react-components
Version:
Government of Alberta - UI components for React
32 lines (31 loc) • 1.1 kB
TypeScript
import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '@abgov/ui-components-common';
import { ReactNode, JSX } from 'react';
interface WCProps extends Margins {
type?: GoabContainerType;
accent?: GoabContainerAccent;
padding?: GoabContainerPadding;
width?: GoabContainerWidth;
maxwidth?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-container": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabContainerProps extends Margins {
accent?: GoabContainerAccent;
type?: GoabContainerType;
heading?: ReactNode;
title?: ReactNode;
padding?: GoabContainerPadding;
actions?: ReactNode;
children?: ReactNode;
width?: GoabContainerWidth;
maxWidth?: string;
testId?: string;
}
export declare function GoabContainer({ accent, heading, title, padding, children, actions, type, width, maxWidth, mt, mr, mb, ml, testId, }: GoabContainerProps): JSX.Element;
export default GoabContainer;