Type definitions for the `@fluid-app/react-widgets` package.
npm install @fluid-app/react-widgets-typesType definitions for the @fluid-app/react-widgets package.
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.
``typescript
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,
};
`
- 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@fluid-app/fluid
- Re-exports of types from : ApiTypes, Schemas, EventType`
MIT