@commercelayer/react-components
Version:
The Official Commerce Layer React Components
26 lines (25 loc) • 661 B
TypeScript
import type { DefaultChildrenType } from '../../typings/globals';
import type { JSX } from "react";
interface Props {
/**
* Accept a React node as children.
*/
children: DefaultChildrenType;
/**
* The access token to authenticate the API calls.
*/
accessToken: string;
/**
* The endpoint to make the API calls. e.g. https://yourdomain.commercelayer.io
*/
endpoint?: string;
/**
* The domain to make the API calls. e.g. commercelayer.io
*/
domain?: string;
}
/**
* CommerceLayer component
*/
export declare function CommerceLayer(props: Props): JSX.Element;
export default CommerceLayer;