Mixins / foldkit-mixins-ui

AspectRatioView

interface · packages/mixins-ui/src/aspectRatio.ts:18

interface AspectRatioView<Message = never> {
  readonly content?: Html | undefined
  readonly style?: NamedStyle<typeof AspectRatioSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

A frame in one call: the content it crops to the ratio, a style for its slot, and mixins beside the style.

Members

AspectRatioView.content

property · packages/mixins-ui/src/aspectRatio.ts:19

readonly content?: Html | undefined

AspectRatioView.style

property · packages/mixins-ui/src/aspectRatio.ts:21

readonly style?: NamedStyle<typeof AspectRatioSlots> | undefined

A style of AspectRatioSlots, for the frame's look.

AspectRatioView.mixins

property · packages/mixins-ui/src/aspectRatio.ts:23

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.