DocsBlog
  • 0.25.3

  • light

    dark

    system

    Switch mode
  • Cerberus

    Acheron

    Elysium

Get Started
Components
Styling
Theming

Concepts

OverviewCompositionTesting

Layout

Aspect RatioBleedBoxCenterContainerDividerFlexFloatGridLink OverlayScrollableStackWrap

Components

AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTAModalDate PickerDialogFieldFieldsetFile UploaderIcon ButtonInputLoading StatesMenuNotificationsNumber InputPin InputProgressPrompt ModalRadioRatingSelectSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

Utilities

Client OnlyDownload TriggerEnvironmentFeature FlagsFocus TrapForFormat ByteFormat NumberFormat Relative TimeFrameHighlightJSON Tree ViewLocaleLocal StoragePortalPresenceShowsplitPropsTheme

Link Overlay

Used to create an overlay that can be used as a link.

  • Panda
import { Box, LinkOverlay } from 'styled-system/jsx'
function App() {
return (
<Box pos="relative">
<img src="https://via.placeholder.com/150" alt="placeholder" />
<LinkOverlay href="#">
View more
</LinkOverlay>
</Box>
)
}

Usage

import { LinkOverlay } from "styled-system/jsx";
<LinkOverlay href="https://example.com">
Click here
</LinkOverlay>

Examples

Basic Link Overlay

import { Box, LinkOverlay } from 'styled-system/jsx'
function App() {
return (
<Box pos="relative">
<img src="https://via.placeholder.com/150" alt="placeholder" />
<LinkOverlay href="https://example.com">
View more
</LinkOverlay>
</Box>
)
}

Props

LinkOverlay accepts all CSS properties.

On this page

  • Edit this page on Github
Cerberus Design System | Docs