🎨
Valence
🎨
Valence
  • Overview
    • 👋Welcome to Valence
    • 🏄‍♂️Getting started
  • Core Concepts
    • Responsiveness
    • Color
      • List of colors
      • Color types
    • Polymorphism
  • Valence Core
    • 🏃‍♂️Fundamentals
      • 🎬The ValenceProvider
      • ✍️Using custom fonts
    • 🧱Components
      • 🔘Buttons
        • Button with icon
        • Grid Button
        • Text button
        • Icon button
        • Multi-part button
        • Unstyled button
        • Primitive button
      • ⌨️Inputs
        • Color Picker
        • Text input
        • Text area
        • Number input
        • Select input
        • Switch
        • Slider
        • Range slider
        • Pill selector
        • Input container
        • Dropdown container
      • 🖥️Display
        • Accordion
        • Alert
        • Color Swatch
        • Icon
        • Image
        • Avatar
        • Avatar Group
        • Loader
        • Pill
        • Spoiler
        • Stepper
        • Text
        • Title
      • 🧩Layout
        • App Container
        • Card
        • Flex
          • Flex Center
          • Styled Flex
        • Floating Toolbar
        • Grid
        • Header
        • Overflow Container
        • Space
      • 🗺️Navigation
        • App Nav
      • 🔼Overlays
        • Modal
        • Tooltip
        • Modal background
        • 📰Sheets
          • Bottom Sheet
          • Dynamic Sheet
          • Side Sheet
    • 🪝Hooks
      • UseColorScheme
      • UseColors
      • UseControlledList
      • UseDetectKeyDown
      • UseDisclosure
      • UseFloating
      • UseTooltip
      • UseBreakpoint
      • UseResponsiveProps
    • 🤚Generics
      • Generic button props
      • Generic input props
      • Generic Sheet Props
  • Valence Plugins
    • 🎠Valence Carousel
      • Carousel Child Props
  • Valence Utils
    • ✋Generics
      • Clickable
      • Events
      • Global
      • Grid
      • Layout
      • Overlay
      • Polymorphic
    • 🧜‍♀️Polymorphism
      • Polymorphic Button
      • Polymorphic Layout
      • Polymorphic Text
  • Update Notes
    • 3.0.0
    • 2.7.0
    • 2.6.0
    • 2.5.0
    • 2.4.0
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
Powered by GitBook
On this page
  • BackdropFilter
  • GenericOverlayBackgroundProps
  • GenericOverlayHeaderProps
  • GenericOverlayProps

Was this helpful?

Edit on GitHub
  1. Valence Utils
  2. Generics

Overlay

Last updated: 2.0.0 (22/01/2024)

PreviousLayoutNextPolymorphic

Last updated 1 year ago

Was this helpful?

BackdropFilter

type BackdropFilter = "blur" | "dot-blur" | "none";

GenericOverlayBackgroundProps

Extends and PolymorphicLayoutProps.

Property
Type
Description

closeOnClick

boolean

Whether to close this overlay when it is clicked.

backdropFilter

BackdropFilter

A filter to apply to the page contents behind the overlay.

backgroundColor

CSSProperties["backgroundColor"]

Sets background-color css property.

padding

CSSProperties["padding"]

Sets padding css property.

zIndex

CSSProperties["zIndex"]

Sets z-index css property.

GenericOverlayHeaderProps

Property
Type
Description

title (required)

string

The title of this overlay.

GenericOverlayProps

Extends and PolymorphicLayoutProps.

Property
Type
Description

title (required)

string

The title of this overlay.

header

Optionally replace the default header with a custom component.

closeOnOverlayClick

boolean

Whether to close this overlay when the overlay is clicked.

closeOnEscape

boolean

Whether to close this overlay when the escape key is pressed.

lockScroll

boolean

Whether to lock scrolling when this overlay is open.

withShadow

boolean

Whether to include a shadow underneath the overlay.

radius

Sets the border-radius css property.

overlayBackgroundProps

Optional props to pass to the overlay background component.

(props: ) => ReactNode

✋
GenericProps
GenericLayoutProps
GenericOverlayHeaderProps
ComponentSize
GenericOverlayBackgroundProps