@fluid-app/react-widgets-types
v1.0.10
Published
Type definitions for the `@fluid-app/react-widgets` package.
Readme
@fluid-app/react-widgets-types
Type definitions for the @fluid-app/react-widgets package.
Overview
This package contains TypeScript interfaces and type definitions extracted from the @fluid-app/react-widgets package. It allows other packages to use these type definitions without having to install the entire React widgets package.
Usage
import type {
BannerWidgetProps,
CartWidgetProps,
LeadCaptureWidgetProps,
} from "@fluid-app/react-widgets-types";
// Use the types in your code
const cartWidgetConfig: CartWidgetProps = {
position: "bottom-right",
size: 60,
zIndex: 9999,
};Types Included
CartWidgetProps: Properties for the shopping cart widgetBannerWidgetProps: Properties for the banner widgetLeadCaptureWidgetProps: Properties for the lead capture form widgetFluidConfig: Configuration options for the Fluid SDK- Re-exports of types from
@fluid-app/fluid:ApiTypes,Schemas,EventType
License
MIT
