@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
29 lines (25 loc) • 731 B
text/typescript
import React from 'preact/compat';
/** @jsxImportSource preact */
type ButtonGroupProps = {
/**
* Provides the class names to be appended to this prop.
*/
className?: string;
/**
* Add child elements defined within a component.
*/
children?: React.ReactNode;
/**
* Pass the CSS properties for the button group.
*/
style?: React.CSSProperties;
/**
* Pass an ID that you can use for testing purposes. It is applied as a data attribute (data-testid).
*/
testId?: string;
};
declare const ButtonGroup: {
(props: ButtonGroupProps): React.JSX.Element;
defaultProps: Partial<ButtonGroupProps>;
};
export { type ButtonGroupProps, ButtonGroup as default };