embedShapeProps
See source codeValidation 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
embedShapeMigrationsNext
frameShapeMigrations