@antadesign/anta
    Preparing search index...

    Function BoxUnreviewed

    • A light-DOM CSS box with browser-owned observation. Box is deliberately a thin JSX projection: it never holds a DOM ref. The element measures itself, tracks clipping and focus within, and emits native custom events so this works with React, Preact, and DOMs reconciled outside the UI thread.

      Parameters

      Returns any

      <Box display="grid" onMeasureChange={(event, { current }) => {
      console.log(current.width, current.clippedX)
      }}>
      <Text truncate>Long content</Text>
      </Box>