← @mortar-kit/core

BrickPropsinterface

import { BrickProps } from '@mortar-kit/core'

interface BrickProps<D, L = undefined, R = undefined>

Props every brick component receives.

Properties

data: D

The brick's data: the right shape, with defaults filled in (see Brick.normalize).

loaded: L

What the brick's load returned; undefined for a brick without one.

submission?: Submission<R>

The latest post of this entry's form (<ActionForm>) to its action: pending, then what it returned or threw. Undefined until the form is sent, and for a brick without an action.