🎨
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
  • GenericGridProps
  • GenericGridItemProps
  • Changelog

Was this helpful?

Edit on GitHub
  1. Valence Utils
  2. Generics

Grid

Last updated: 3.0.0 (04/07/2024)

PreviousGlobalNextLayout

Last updated 11 months ago

Was this helpful?

GenericGridProps

Extends .

Property
Type
Description

grid

CSSProperties["grid"]

Sets grid css property.

gap

CSSProperties["gap"]

Sets gap css property.

rowGap

CSSProperties["rowGap"]

Sets row-gap css property.

columnGap

CSSProperties["columnGap"]

Sets column-gap css property.

template

CSSProperties["gridTemplate"]

Sets grid-template css property.

rows

number | CSSProperties["gridTemplateRows"]

Sets grid-template-rows css property.

columns

number | CSSProperties["gridTemplateColumns"]

Sets grid-template-columns css property.

templateAreas

CSSProperties["gridTemplateAreas"]

Sets grid-template-areas css property.

autoRows

CSSProperties["gridAutoRows"]

Sets grid-auto-rows css property.

autoColumns

CSSProperties["gridAutoColumns"]

Sets grid-auto-columns css property.

autoFlow

CSSProperties["gridAutoFlow"]

Sets grid-auto-flow css property.

justifyItems

CSSProperties["justifyItems"]

Sets justify-items css property.

justifyContent

CSSProperties["justifyContent"]

Sets justify-content css property.

alignItems

CSSProperties["alignItems"]

Sets align-items css property.

alignContent

CSSProperties["alignContent"]

Sets align-content css property.

GenericGridItemProps

Property
Type
Description

area

CSSProperties["gridArea"]

Sets grid-area css property.

column

CSSProperties["gridColumn"]

Sets grid-column css property.

columnStart

CSSProperties["gridColumnStart"]

Sets grid-column-start css property.

columnEnd

CSSProperties["gridColumnEnd"]

Sets grid-column-end css property.

row

CSSProperties["gridRow"]

Sets grid-rowcss property.

rowStart

CSSProperties["gridRowStart"]

Sets grid-row-start css property.

rowEnd

CSSProperties["gridRowEnd"]

Sets grid-row-end css property.

justify

CSSProperties["justifySelf"]

Sets justify-self css property.

align

CSSProperties["alignSelf"]

Sets align-self css property.

place

CSSProperties["placeSelf"]

Sets place-self css property.

order

CSSProperties["order"]

Sets order css property.


Changelog

  • 3.0.0: Replaced templateRows and templateColumns props with rows and columns props, respectively; allowed them to accept number types as well.

Extends .

✋
GenericLayoutProps
GenericLayoutProps