• Docs
  • Blog
    • 0.24.0

    • Switch to dark mode
    Get Started
    Components
    Styling
    Theming

    Concepts

    OverviewCompositionTesting

    Layout

    Aspect RatioBleedBoxCenterContainerDividerFlexFloatGridLink OverlayScrollableStackWrap

    Components

    AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTAModalDate PickerDialogFieldFieldsetFile UploaderIcon ButtonInputLoading StatesMenuNotificationsNumber InputPin InputProgressPrompt ModalRadioRatingSelectSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

    Utilities

    Feature FlagsForLocal StoragePortalShowsplitPropsTheme

    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