@carbon/ibm-products
Version:
Carbon for IBM Products
43 lines • 1.5 kB
TypeScript
/**
* Copyright IBM Corp. 2025
*
* 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, { ReactNode } from 'react';
export interface TearsheetHeaderContentProps {
/**
* Provide the optional content for header section and will be render after header titles and before progress indicator.
* People can make use of this if they want to have custom header.
*/
children?: React.ReactNode;
/**
* The main title of the tearsheet.
*/
title: string;
/**
* A label for the tearsheet, displayed above the title
* to maintain context for the tearsheet (e.g. as the title changes from page
* to page of a multi-page task).
*/
label?: ReactNode;
/**
* A description of the flow, displayed in the header area of the tearsheet.
*/
description?: ReactNode;
/**
* This can be used to render a content just before the title like an icon
*/
titleStart?: ReactNode;
/**
* This can be used to render a content just after the title like an icon
*/
titleEnd?: ReactNode;
/**
* The PageHeaderContent's page actions
*/
headerActions?: React.ReactNode;
}
declare const TearsheetHeaderContent: React.ForwardRefExoticComponent<TearsheetHeaderContentProps & React.RefAttributes<HTMLDivElement>>;
export default TearsheetHeaderContent;
//# sourceMappingURL=TearsheetHeaderContent.d.ts.map