meo-canvas - v8.1.3
    Preparing search index...

    Function Box

    • A rectangle that lays its children out with flexbox.

      The base of every layout here: Column and Row are this with flexDirection preset.

      Parameters

      • props: BoxProps

        Layout, style and children.

      Returns CanvasElement

      A descriptor the renderer turns into a node.

      Box({
      width: 200,
      padding: 16,
      backgroundColor: '#0b1120',
      borderRadius: 12,
      children: [Text('hello', { color: '#f8fafc' })],
      })