@carbon/ibm-products
Version:
Carbon for IBM Products
48 lines • 1.57 kB
TypeScript
/**
* Copyright IBM Corp. 2022, 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';
interface EditTearsheetFormBaseProps {
/**
* Content that shows in the tearsheet form
*/
children?: ReactNode;
/**
* Sets an optional className to be added to the tearsheet form
*/
className?: string;
/**
* Sets an optional description on the form component
*/
description?: string;
/**
* This optional prop will render your form content inside of a fieldset html element
* and is defaulted to true.
* You can set this prop to `false` if you have multiple fieldset elements or want to control the children of your Full Page's form content.
*/
hasFieldset?: boolean;
/**
* Sets an optional subtitle on the form component
*/
subtitle?: string;
/**
* Sets the title text for a tearsheet form
*/
title: ReactNode;
}
type EditTearsheetFormFieldsetTypes = {
hasFieldset?: false;
fieldsetLegendText: string;
fieldsetLegendId?: React.ReactNode;
} | {
hasFieldset: true;
fieldsetLegendText: string;
fieldsetLegendId: React.ReactNode;
};
type EditTearsheetFormProps = EditTearsheetFormBaseProps & EditTearsheetFormFieldsetTypes;
export declare const EditTearsheetForm: React.ForwardRefExoticComponent<EditTearsheetFormProps & React.RefAttributes<HTMLDivElement>>;
export {};
//# sourceMappingURL=EditTearsheetForm.d.ts.map