MotionScript

@motion-script/core


@motion-script/core / CornersInput

Type Alias: CornersInput<T>

CornersInput<T> = T | Partial<Corners<T>> | { bottom?: T; top?: T; } | { left?: T; right?: T; }

Defined in: attributes/shape/corners/per-corner.ts:23

The accepted input grammar for any per-corner property (radius, style, smoothing), generic over the corner value type T:

  • a single T applies uniformly to all four corners;
  • { topLeft, … } overrides individual corners (unspecified corners fall back to a previous value or the type's default when resolved);
  • { top, bottom } sets the top pair (topLeft, topRight) and/or the bottom pair (bottomLeft, bottomRight);
  • { left, right } sets the left pair (topLeft, bottomLeft) and/or the right pair (topRight, bottomRight).

Type Parameters

T

T