SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

panelChrome

The border and rounding a bordered, framed panel applies to its own host element.

tsx
import { panelChrome } from "@sdxc/ui/styles";

Usage

A framed panel's shared border and rounding: a solid, 1px neutral border with large rounding, sized through the shared radius and border variables. Compose it in a host's mix array alongside that host's own local styles.

Signature

typescript
panelChrome<Node extends Element = Element>(): MixinDescriptor<
	Node,
	[styles: CSSStyles],
	ElementProps
>

Returns a mixin ready for a host element's mix prop.

Examples

tsx
<div
	mix={[
		panelChrome(),
		css({
			paddingBlock: "0.5rem",
			paddingInline: "0.5rem",
			outline: "none",
		}),
	]}
>
	{children}
</div>;
@sdxc/ui

Can’t find it? Contact us