@carbon/react
Version:
React components for the Carbon Design System
35 lines (34 loc) • 1.11 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
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;