ChoisSTANDARD UI컴포넌트 검색 /

Helpers

Resize Observer

semantic HTML

요소 크기 변경을 선언적 이벤트로 제공합니다.

stablefreeSince 0.4

Live example

Resize target
Waiting for resize
<section data-standard-component="resize-observer"><div class="example-observer-target example-resize-target">Resize target</div><button type="button" data-example-action="resize">Resize</button><output data-example-output aria-live="polite">Waiting for resize</output></section>

Variants and sizes

The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.

compactcomfortableroomy

Public API

ContractValue
Implementationsemantic HTML
Statusstable
Licensefree
Since0.4
HTML contractNative HTML elements and attributes
EventsNative browser events

Accessibility

크기에 따라 정보나 조작 기능이 사라지지 않게 설계하고 확대 및 reflow 환경에서도 동일한 읽기 순서를 유지합니다.

Server template guidance

<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->