@carbon/ibm-products
Version:
Carbon for IBM Products
32 lines • 1.25 kB
TypeScript
/**
* Copyright IBM Corp. 2025, 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';
import { ButtonProps } from '@carbon/react';
import { ActionSetProps } from '../../ActionSet';
export interface TearsheetFooterProps {
/**
* Optional children to render in the footer. If provided, children are rendered first,
* followed by the ActionSet (if actions are provided).
*/
children?: ReactNode;
/**
* Optional class name to add to the footer element.
*/
className?: string;
/**
* Optional array of action button configurations. If provided, an ActionSet will be
* rendered after any children. Each action follows the ActionSet button specification.
*/
actions?: ButtonProps<React.ElementType>[];
/**
* Optional size for the ActionSet buttons. Defaults to the ActionSet's default size.
*/
buttonSize?: ActionSetProps['buttonSize'];
}
declare const TearsheetFooter: React.ForwardRefExoticComponent<TearsheetFooterProps & React.RefAttributes<HTMLDivElement>>;
export default TearsheetFooter;
//# sourceMappingURL=TearsheetFooter.d.ts.map