@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
32 lines (31 loc) • 964 B
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
import React from 'react';
import { PolymorphicProps } from '../../types/common';
export interface RowBaseProps {
/**
* Pass in content that will be rendered within the `Row`
*/
children?: React.ReactNode;
/**
* Specify a custom className to be applied to the `Row`
*/
className?: string;
/**
* Specify a single row as condensed.Rows that are adjacent
* and are condensed will have 2px of margin between them to match gutter.
*/
condensed?: boolean;
/**
* Specify a single row as narrow. The container will hang
* 16px into the gutter.
*/
narrow?: boolean;
}
export type RowProps<T extends React.ElementType> = PolymorphicProps<T, RowBaseProps>;
export interface RowComponent {
<T extends React.ElementType>(props: RowProps<T>, context?: any): React.ReactElement<any, any> | null;
}
declare const _default: RowComponent;
export default _default;