UNPKG

@commercelayer/react-components

Version:
19 lines (18 loc) 751 B
import { type ReactNode, type JSX } from 'react'; interface Props { children: ReactNode; } /** * The `Skus` components loop through the list of `skus` found in `SkusContainer` context and render the children filled with the proper sku value. * This means that the children will be rendered as many times as the number of skus found in the `skus` prop array * and there is no need to manually loop through them from your consumer app. * * <span title='Requirements' type='warning'> * Must be a child of the `<SkusContainer>` component. * </span> * <span title='Children' type='info'> * `<SkuField>`, `<AvailabilityContainer>` * </span> */ export declare function Skus<P extends Props>({ children }: P): JSX.Element; export default Skus;