Description

A primitive component that handles positioning in relation to the viewport. It provides extra features compared to normal CSS position: fixed.

Features

Notes

Anatomy

Basic

import { Fixed } from "@silk-hq/sheet";

export default () => (
	<Fixed.Root>
		<Fixed.Content>
			...
		</Fixed.Content>
	</Fixed.Root>
);

With <Sheet.Outlet>

import { Sheet, Fixed } from "@silk-hq/sheet";

export default () => (
	<Sheet.Outlet>
		<Fixed.Root>
			<Fixed.Content>
				...
			</Fixed.Content>
		</Fixed.Root>
	</Sheet.Outlet>
);

Sub-components

<Fixed.Root>

Presence Required
Composition Contains <Fixed.Content>
Underlying element <div>