embedShapeProps

See source code

Validation schema for embed shape properties.

embedShapeProps: RecordProps<TLEmbedShape>

Example

// Validate embed shape properties
const isValidUrl = embedShapeProps.url.isValid(
  'https://youtube.com/watch?v=abc123'
)
const isValidSize = embedShapeProps.w.isValid(560)
Prev
embedShapeMigrations
Next
frameShapeMigrations