UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

19 lines 1.05 kB
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 'use client'; import React from 'react'; import { getBaseProps } from '../internal/base-component'; import { useContainerBreakpoints } from '../internal/hooks/container-queries'; import useBaseComponent from '../internal/hooks/use-base-component'; import { applyDisplayName } from '../internal/utils/apply-display-name'; import InternalGrid from './internal'; export default function Grid({ gridDefinition = [], disableGutters = false, children, ...restProps }) { const baseComponentProps = useBaseComponent('Grid', { props: { disableGutters }, }); const baseProps = getBaseProps(restProps); const [breakpoint, ref] = useContainerBreakpoints(undefined); return (React.createElement(InternalGrid, { ...baseProps, ...baseComponentProps, ref: ref, __breakpoint: breakpoint, gridDefinition: gridDefinition, disableGutters: disableGutters }, children)); } applyDisplayName(Grid, 'Grid'); //# sourceMappingURL=index.js.map