Skip to main content
You can declare variables passed from outside with the @morph.variables annotation.

Parameters

string
required
You can add arguments when executing the function.You can pass arguments from the mdx file or specify arguments when executing the command.
any
You can set a default value.If not specified, the default value will be None.
bool
default:"False"
You can specify whether the item is required.If it is set to required, an error will occur if it is not specified.
string
default:"None"
You can specify the type of the variable.If not specified, the type will be inferred automatically.

How to Use