📄 radixui/themes/docs/components/inset

File: inset.md | Updated: 11/15/2025

Source: https://www.radix-ui.com/themes/docs/components/inset

Radix Homepage

Made by WorkOS

Radix Homepage

Made by WorkOS

ThemesThemes PrimitivesPrimitives IconsIcons ColorsColors

Documentation Playground Blog

Overview

Getting started Styling Layout Releases Resources

Theme

Overview Color Dark mode Typography Spacing Breakpoints Radius Shadows Cursors

Layout

Box Flex Grid Container Section

Typography

Text Heading Blockquote Code Em Kbd Link Quote Strong

Components

Alert Dialog Aspect Ratio Avatar Badge Button Callout Card Checkbox Checkbox Group Checkbox Cards Context Menu Data List Dialog Dropdown Menu Hover Card Icon Button Inset Popover Progress Radio Radio Group Radio Cards Scroll Area Segmented Control Select Separator Skeleton Slider Spinner Switch Table Tabs Tab Nav Text Area Text Field Tooltip

Utilities

Accessible Icon Portal Reset Slot Theme Visually Hidden

Components

Inset

Applies a negative margin to allow content to bleed into the surrounding container.

View source Report an issue View in Playground

Bold typography

Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed.

<Box maxWidth="240px">
	<Card size="2">
		<Inset clip="padding-box" side="top" pb="current">
			<img
				src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80"
				alt="Bold typography"
				style={{
					display: "block",
					objectFit: "cover",
					width: "100%",
					height: 140,
					backgroundColor: "var(--gray-5)",
				}}
			/>
		</Inset>
		<Text as="p" size="3">
			<Strong>Typography</Strong> is the art and technique of arranging type to
			make written language legible, readable and appealing when displayed.
		</Text>
	</Card>
</Box>

API Reference


This component is based on the div element and supports common margin props .

| Prop | Type | Default | | --- | --- | --- | | asChild<br><br>Prop description | boolean | No default value | | side | Responsive<enum><br><br>See full type | "all" | | clip | Responsive<"border-box" \| "padding-box"> | "border-box" | | p | Responsive<"current" \| "0"> | No default value | | px | Responsive<"current" \| "0"> | No default value | | py | Responsive<"current" \| "0"> | No default value | | pt | Responsive<"current" \| "0"> | No default value | | pr | Responsive<"current" \| "0"> | No default value | | pb | Responsive<"current" \| "0"> | No default value | | pl | Responsive<"current" \| "0"> | No default value |

PreviousIcon Button

NextPopover

Edit this page on GitHub.