# Common Props

> Layout and utility props shared by most VaneUI React components, written as booleans: responsive hide, flex alignment, position, display, overflow and gap.

Source: https://vaneui.com/docs/reference/common-props

Layout and utility props shared across most VaneUI components. Documented here once instead of on every component page. Per-component pages link here from the "Layout & utility props" disclosure under their props table.

Component-specific categories are listed on each component's own page because defaults differ. These include **size** (`xs`/`sm`/`md`/`lg`/`xl`), **appearance** (`primary`/`accent`/`secondary`/`tertiary`/`success`/`danger`/`warning`/`info`/`inheritAppearance`), **variant** (`filled`/`outline`/`ghost`, default `outline`), **shape** (`pill`/`rounded`/`sharp`, default `rounded`), **padding** (`padding`/`paddingX`/`paddingY`/`noPadding`), **fontWeight**, and **textAlign**. Default **size** is `md`, except the controls and the dense components, which default to `sm`: `Button`, `IconButton`, `Input`, `Textarea`, `Select`, `Field`, `Label`, `NavLink`, `MenuItem`, `MenuLabel`, `Tooltip`, `Badge`, `Table` and `Breadcrumb`. The `ghost` variant renders a transparent background with no border and appearance-colored text, plus a tinted hover background.

## Hide

Hide elements at specific breakpoint sizes for responsive layouts.

| Prop | Description |
|------|-------------|
| `mobileHide` | Hide below 768px (48rem); the 768px boundary itself stays visible |
| `tabletHide` | Hide below 1024px (64rem); the 1024px boundary itself stays visible |
| `desktopHide` | Hide below 1280px (80rem); the 1280px boundary itself stays visible |

Breakpoints are exclusive (width `<` the boundary). Combining several `*Hide` props resolves to the widest, so `mobileHide tabletHide` hides below 1024px.

## Show

Show elements only below a breakpoint, the reverse of the hide props.

| Prop | Description |
|------|-------------|
| `mobileShow` | Show only below 768px (48rem); hidden from 768px up |
| `tabletShow` | Show only below 1024px (64rem); hidden from 1024px up |
| `desktopShow` | Show only below 1280px (80rem); hidden from 1280px up |

Show and hide are separate categories, so they combine: `mobileHide tabletShow` shows an element only from 768 to 1024px. A mobile menu button that disappears once the full navigation fits is `<IconButton tabletShow aria-label="Menu">`.

## Items

Cross-axis alignment for flex items (align-items). Controls how flex children align perpendicular to the flex direction.

| Prop | Description |
|------|-------------|
| `itemsStart` | Align items to start (top/left) |
| `itemsEnd` | Align items to end (bottom/right) |
| `itemsCenter` | Align items to center |
| `itemsBaseline` | Align items to baseline |
| `itemsStretch` | Stretch items to fill container |

## Justify

Main-axis alignment for flex items (justify-content). Controls how flex children distribute along the flex direction.

| Prop | Description |
|------|-------------|
| `justifyStart` | Pack items toward the start of the main axis |
| `justifyEnd` | Pack items toward the end of the main axis |
| `justifyCenter` | Center items along the main axis |
| `justifyBetween` | Distribute items with space between them |
| `justifyAround` | Distribute items with space around them |
| `justifyEvenly` | Distribute items with equal space around them |
| `justifyStretch` | Stretch items to fill the main axis |
| `justifyBaseline` | Align items along their baseline on main axis |

## Align self

Cross-axis alignment for a single flex or grid item (align-self), overriding the parent's `items` value for that one child.

| Prop | Description |
|------|-------------|
| `alignSelfAuto` | Use the parent's align-items value (`align-self: auto`) |
| `alignSelfStart` | Align this item to the start of the cross axis |
| `alignSelfEnd` | Align this item to the end of the cross axis |
| `alignSelfCenter` | Center this item on the cross axis |
| `alignSelfStretch` | Stretch this item to fill the cross axis |
| `alignSelfBaseline` | Align this item to its baseline |

## Justify self

Inline-axis alignment for a single grid item within its grid area (justify-self). Useful with CSS anchor positioning.

| Prop | Description |
|------|-------------|
| `justifySelfAuto` | Use the parent's justify-items value (`justify-self: auto`) |
| `justifySelfStart` | Align this item to the start of the inline axis |
| `justifySelfEnd` | Align this item to the end of the inline axis |
| `justifySelfCenter` | Center this item on the inline axis |
| `justifySelfStretch` | Stretch this item to fill the inline axis |

## Position

CSS positioning property values for controlling element position behavior.

| Prop | Description |
|------|-------------|
| `relative` | Relative positioning |
| `absolute` | Absolute positioning |
| `fixed` | Fixed positioning |
| `sticky` | Sticky positioning; sticks at the top edge with no `top-*` class |
| `static` | Static positioning |

`sticky` sticks at the top edge (`top: 0`) on its own. Set the `--sticky-top` CSS variable on the element or an ancestor to stick below a fixed header, for example `--sticky-top: 4rem`. A `top-*` class still wins, and an element with a `bottom-*` class gets no top. The default top edge needs `@vaneui/ui` 1.5.0 or later.

## Display

CSS display property values for controlling element layout behavior.

| Prop | Description |
|------|-------------|
| `inline` | Inline display - flows with text |
| `block` | Block display - takes full width, new line |
| `inlineBlock` | Inline-block display - inline but with block properties |
| `flex` | Flex display - flexbox container |
| `inlineFlex` | Inline-flex display - inline flexbox container |
| `grid` | Grid display - CSS grid container |
| `inlineGrid` | Inline-grid display - inline grid container |
| `contents` | Contents display - element's box is removed, children display as if parent didn't exist |
| `table` | Table display - behaves like table element |
| `tableCell` | Table-cell display - behaves like td element |
| `hidden` | Hidden display - element is not visible |

## Overflow

Overflow behavior for content that exceeds container bounds.

| Prop | Description |
|------|-------------|
| `overflowAuto` | Auto overflow - show scrollbars if needed |
| `overflowHidden` | Hidden overflow - clip content without scrollbars |
| `overflowClip` | Clip overflow - hard clip without scrollbars |
| `overflowVisible` | Visible overflow - content extends beyond bounds |
| `overflowScroll` | Scroll overflow - always show scrollbars |
| `overflowXAuto` | Auto overflow on X-axis only |
| `overflowYAuto` | Auto overflow on Y-axis only |
| `overflowXHidden` | Hidden overflow on X-axis only |
| `overflowYHidden` | Hidden overflow on Y-axis only |
| `overflowXClip` | Clip overflow on X-axis only |
| `overflowYClip` | Clip overflow on Y-axis only |
| `overflowXVisible` | Visible overflow on X-axis only |
| `overflowYVisible` | Visible overflow on Y-axis only |
| `overflowXScroll` | Scroll overflow on X-axis only |
| `overflowYScroll` | Scroll overflow on Y-axis only |

## Wrap

Flex item wrapping behavior for multiline layouts.

| Prop | Description |
|------|-------------|
| `flexWrap` | Allow flex items to wrap to new lines when container is too narrow |
| `flexNoWrap` | Force flex items to stay on single line (may overflow) |
| `flexWrapReverse` | Wrap flex items in reverse order (last items wrap first) |

## Gap

Spacing between flex/grid items.

| Prop | Description |
|------|-------------|
| `gap` | Enable gap spacing between children; the gap follows the size prop |
| `noGap` | Disable gap spacing |
| `gapXs` | Fixed extra-small gap: 8px on layout components, 4px on the others |
| `gapSm` | Fixed small gap: 12px on layout components, 6px on the others |
| `gapMd` | Fixed medium gap: 16px on layout components, 8px on the others |
| `gapLg` | Fixed large gap: 24px on layout components, 10px on the others |
| `gapXl` | Fixed extra-large gap: 32px on layout components, 12px on the others |

A fixed step stays the same at every size and every screen width, where `gap` grows with the size prop and, with `responsiveSizing`, shrinks on tablet and mobile. `<Row lg gapSm>` keeps the large text and padding of `lg` with a 12px gap. The fixed steps need `@vaneui/ui` 1.8.0 or later.

## Flex direction

Flex layout direction for arranging children.

| Prop | Description |
|------|-------------|
| `row` | Flex direction row (horizontal) |
| `column` | Flex direction column (vertical) |
| `rowReverse` | Flex direction row-reverse |
| `columnReverse` | Flex direction column-reverse |

## Flex

Flex-grow / flex-shrink shorthand for distributing space along the main axis. Mutually exclusive: only one value can be active.

| Prop | Description |
|------|-------------|
| `flex1` | Take up remaining space (`flex: 1 1 0%`); the standard "fill the rest" behavior |
| `flexAuto` | Grow but respect intrinsic content size (`flex: 1 1 auto`) |
| `flexNone` | Don't grow and don't shrink (`flex: none`); fixed-size in a flex container |

## Shrink

Flex-shrink override. Independent toggle so it can be combined with `flex1`/`flexAuto` or used standalone.

| Prop | Description |
|------|-------------|
| `noShrink` | Prevent the item from shrinking below its content size (`shrink-0`); typical for fixed-width sidebars in a flex row |

## Border

Border visibility on component sides. Side props compose: `borderT borderL` applies both. `noBorder` resets and wins.

| Prop | Description |
|------|-------------|
| `border` | Enable border on all sides |
| `borderT` | Enable border on top |
| `borderB` | Enable border on bottom |
| `borderL` | Enable border on left |
| `borderR` | Enable border on right |
| `borderX` | Enable border on left and right |
| `borderY` | Enable border on top and bottom |
| `borderStart` | Enable border on the inline-start side (flips under `dir="rtl"`) |
| `borderEnd` | Enable border on the inline-end side (flips under `dir="rtl"`) |
| `noBorder` | Disable all borders |

The layout components (`Row`, `Col`, `Stack`, `Grid2` to `Grid6`, `Container`, `Card` and `Section`) also take `strongBorder`, which keeps the border sides as set and paints them in the appearance's strong color, the one its focus ring uses. A `filled` Card, whose border is otherwise transparent, shows it too. It is listed in each of those components' own props tables, and the [Card strong border example](/docs/layout-components/card#strong-border-for-a-selected-card) shows it on a row of plans. `strongBorder` needs `@vaneui/ui` 1.4.5 or later.

## Margin

External spacing that scales with the component's size prop, available on layout components and block typography. Side props compose: `marginT marginB` applies both. `noMargin` resets and wins. Block typography defaults to `noMargin`.

| Prop | Description |
|------|-------------|
| `margin` | Enable margin on all sides |
| `marginX` | Enable margin on left and right |
| `marginY` | Enable margin on top and bottom |
| `marginT` | Enable margin on top |
| `marginB` | Enable margin on bottom |
| `noMargin` | Disable all margins |

## Shadow

Drop shadow visibility and size. `shadow` follows the component's size prop. `shadowXs` to `shadowXl` fix the size whatever the component's size, on the component's own ramp: compact for UI components such as `Button` and `Input`, deeper for layout components such as `Card`, `Modal` and `Popup`. All seven props share one category, so set one at a time. The fixed sizes need `@vaneui/ui` 1.4.5 or later.

| Prop | Description |
|------|-------------|
| `shadow` | Enable drop shadow at the component's size |
| `shadowXs` | Extra-small drop shadow, whatever the component's size |
| `shadowSm` | Small drop shadow, whatever the component's size |
| `shadowMd` | Medium drop shadow, whatever the component's size |
| `shadowLg` | Large drop shadow, whatever the component's size |
| `shadowXl` | Extra-large drop shadow, whatever the component's size |
| `noShadow` | Disable drop shadow |

## Ring

Inset ring visibility. `insetRing` is an always-on decorative inset ring, not the keyboard focus indicator (that is `focusVisible`, in the Focus visible section).

| Prop | Description |
|------|-------------|
| `insetRing` | Enable the inset ring |
| `noInsetRing` | Disable the inset ring |

## Focus visible

Focus-visible outline visibility for keyboard navigation indicators.

| Prop | Description |
|------|-------------|
| `focusVisible` | Enable focus-visible outline |
| `noFocusVisible` | Disable focus-visible outline |

Default on `Button`, `IconButton`, `Link`, `NavLink`, `MenuItem`, and the form controls (`Input`, `Textarea`, `Select`, `Checkbox`, `Radio`, `Switch`). Auto-enabled on components that tag-switch to `<a>` via `href` (`Badge`, `Card`, `Chip`, `Code`, `Row`, `Col`, `Stack`).

## Cursor

Cursor appearance for interactive elements and states.

| Prop | Description |
|------|-------------|
| `cursorPointer` | Pointer cursor - indicates clickable element |
| `cursorDefault` | Default cursor - standard arrow |
| `cursorNotAllowed` | Not-allowed cursor - indicates disabled state |
| `cursorNone` | No cursor - hides the cursor |
| `cursorText` | Text cursor - indicates selectable text |
| `cursorMove` | Move cursor - indicates draggable element |
| `cursorWait` | Wait cursor - indicates loading/processing |

## Transition

Animation effects for state changes.

| Prop | Description |
|------|-------------|
| `transition` | Enable smooth transitions between states |
| `noTransition` | Disable transitions for instant state changes |

## Whitespace

Text wrapping and whitespace behavior. Typography components and UI elements such as `Button`, `Badge`, `Code` and `Input` take these props, and from `@vaneui/ui` 1.4.5 so do the layout components `Row`, `Col`, `Stack`, `Grid2` to `Grid6`, `Container`, `Card` and `Section`. `white-space` is inherited, so `<Row whitespaceNowrap>` keeps every line of text inside the row from wrapping, as in the [Img noShrink example](/docs/layout-components/img#keeping-its-size-in-a-row-with-noshrink).

| Prop | Description |
|------|-------------|
| `whitespaceNowrap` | No wrap - text stays on single line |
| `whitespaceNormal` | Normal wrapping - default browser behavior |
| `whitespacePre` | Preserve whitespace and line breaks |
| `whitespacePreWrap` | Preserve whitespace, wrap text |
| `whitespacePreLine` | Preserve line breaks, collapse spaces, wrap text |
| `whitespaceBreakSpaces` | Preserve whitespace including trailing spaces, wrap text (`white-space: break-spaces`) |

## Width

Component width sizing.

| Prop | Description |
|------|-------------|
| `wFull` | Set width to 100% |
| `wFit` | Set width to fit-content |
| `wAuto` | Set width to auto |
| `wScreen` | Set width to 100vw (viewport width), removes max-width constraint |

## Responsive width

Full width below a breakpoint, on top of the component's base width.

| Prop | Description |
|------|-------------|
| `mobileWFull` | Full width below 768px (48rem); base width from 768px up |
| `tabletWFull` | Full width below 1024px (64rem); base width from 1024px up |
| `desktopWFull` | Full width below 1280px (80rem); base width from 1280px up |

`<Button mobileWFull>` fills a row that `mobileStack` turns into a column on a phone, and keeps its fit width on wider screens.

## Height

Component height sizing.

| Prop | Description |
|------|-------------|
| `hFit` | Set height to fit-content |
| `hFull` | Set height to 100% |
| `hAuto` | Set height to auto |
| `hScreen` | Set height to 100vh (viewport height), removes max-height constraint |

## Transparent

Disable background color, making the component transparent.

| Prop | Description |
|------|-------------|
| `transparent` | Disable background color - makes component background transparent |

## Responsive

Enable breakpoint-specific sizing for adaptive layouts.

| Prop | Description |
|------|-------------|
| `responsiveSizing` | Enable responsive sizing - uses breakpoint-specific classes for font size, padding, and gap |

## Object fit

Image and video sizing within their containers.

| Prop | Description |
|------|-------------|
| `objectCover` | Cover - image covers container, may be cropped |
| `objectContain` | Contain - image fits inside container, may have letterboxing |
| `objectFill` | Fill - image stretches to fill container |
| `objectNone` | None - image displays at natural size |
| `objectScaleDown` | Scale down - like contain, but never scales up |

## Aspect ratio

Fixed width-to-height ratio. `Img`, `Card`, `Row`, `Col` and `Stack` take these props from `@vaneui/ui` 1.8.0. Set the width, and the height follows.

| Prop | Description |
|------|-------------|
| `aspectSquare` | 1:1 (`aspect-ratio: 1 / 1`) |
| `aspectVideo` | 16:9 (`aspect-ratio: 16 / 9`) |
| `aspectAuto` | The element's own ratio (`aspect-ratio: auto`) |

## Screen reader only

| Prop | Description |
|------|-------------|
| `srOnly` | Hide the element visually and keep it in the accessibility tree, so screen readers still read it |

`Text`, `Title`, `SectionTitle`, `PageTitle`, `Link`, `List`, `ListItem`, `Blockquote` and `Label` take `srOnly` from `@vaneui/ui` 1.8.0. It wins over the component's own width, padding and margin, so the text stays hidden whatever other props it has.

## Skeleton

| Prop | Description |
|------|-------------|
| `skeleton` | Show the component as a loading placeholder in its own layout. On a container it reaches every component inside |

Every component takes `skeleton` from `@vaneui/ui` 1.8.0. Text turns into bars as long as each line (one 12-character bar while it is empty), the box components (buttons, badges, fields, avatars, images, icons) into solid shapes of their own size, and a container keeps its surface and border. The element gets `aria-busy="true"` and `inert`. See [Skeleton](/docs/basic-components/skeleton).

## Blur

Backdrop blur effect for overlays and visual effects.

| Prop | Description |
|------|-------------|
| `backdropBlur` | Enable backdrop blur effect |
| `noBackdropBlur` | Disable backdrop blur effect |

## Pointer events

Element interactivity with the pointer. `Overlay` and `Popup` take these props, and from `@vaneui/ui` 1.4.5 so do the layout components `Row`, `Col`, `Stack`, `Grid2` to `Grid6`, `Container`, `Card` and `Section`. `pointer-events` is inherited: a layer with `pointerEventsNone` lets clicks through to the page behind it, and a child with `pointerEventsAuto` inside it, such as a floating toolbar, takes clicks again.

| Prop | Description |
|------|-------------|
| `pointerEventsNone` | Disable pointer events - clicks pass through the element |
| `pointerEventsAuto` | Enable pointer events (default browser behavior) |

## Constrain width

Minimum width constraint for popup and floating components.

| Prop | Description |
|------|-------------|
| `constrainWidth` | Apply size-dependent minimum width (uses --popup-min-w CSS variable) |

## Clamp height

Maximum height constraint for components.

| Prop | Description |
|------|-------------|
| `clampHeight` | Apply size-dependent maximum height (uses --max-height CSS variable) |

## Orientation

Horizontal or vertical layout direction for certain components.

| Prop | Description |
|------|-------------|
| `horizontal` | Display as a horizontal line (default) |
| `vertical` | Display as a vertical line instead of horizontal |
