@carbon/react
Version:
React components for the Carbon Design System
25 lines (24 loc) • 877 B
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';
interface ColumnHangBaseProps {
/**
* Pass in content that will be rendered within the `ColumnHang`
*/
children?: React.ReactNode;
/**
* Specify a custom className to be applied to the `ColumnHang`
*/
className?: string;
}
export type ColumnHangProps<T extends React.ElementType> = PolymorphicProps<T, ColumnHangBaseProps>;
export interface ColumnHangComponent {
<T extends React.ElementType>(props: ColumnHangProps<T>, context?: any): React.ReactElement<any, any> | null;
}
declare const ColumnHangComponent: ColumnHangComponent;
export { ColumnHangComponent as ColumnHang };