UIKit
8.2.0
• Overlay컴포넌트
UIKit
8.2.0
AccordionActionTooltipActionsPanelAlertArrowToggleAvatarAvatar StackBreadcrumbsButtonCardCheckboxClipboard IconClipboardButtonColor PickerCopy To ClipboardDefinitionListDialogDisclosureDividerDrawerDropdownMenuFile Drop ZoneFilePreviewHello Pangea DndHelpMarkHotkeyIconLabelLinkListList Item ViewLoaderMenuModalNumberInputOverlayPaginationPalettePasswordInputPinInputPlaceholderContainerPopoverPopupPortalProgressRadioRadioGroupSegmentedRadioGroupSelectSheetSkeletonSliderSpinStepperSwitchTableTable Column SetupTabsTextTextAreaTextInputToasterTocTooltipUserUserLabelVirtualizer
Date Components
3.4.2
Navigation
6.3.1
visible
background
Overlay 컴포넌트는 상대 위치를 가진 부모 요소 위에 오버레이를 렌더링합니다. 즉, 부모 요소에는 position이 relative로 설정되어 있어야 합니다.
예를 들어, 데이터를 로딩하는 동안 원하는 레이아웃을 유지하는 데 사용할 수 있습니다.
import {Overlay} from '@gravity-ui/uikit';
import {Box, Overlay, Loader} from '@gravity-ui/uikit';
<Box position="relative">
<div>Some content to hide under overlay</div>
<Overlay visible={loading}>
<Loader />
</Overlay>
</Box>;
§Appearance
§Background
base 또는 float 배경색을 사용할 수 있습니다.
§Properties
| Name | Description | Type | Default |
|---|---|---|---|
| className | CSS class name of the root element | string | |
| visible | Overlay visibility state | boolean | false |
| background | Overlay background style | "base" "float" | base |
| children | Content (usually, a Loader component) | React.ReactNode |