Skip to content

Option Argument

Identifier option
Allows Multiple true

The option argument lets you add a single option. If you supply only one value (value), the value will be displayed in the input field and written to the front-matter. If you supply two values (value, name), the value will be written to the front-matter and the name will be displayed in the input field.

Values

The input field argument option accepts the following value configurations.

  • option(value: any)
    • value is the value and display name of the option
  • option(value: any, name: any)
    • value is the value of the option
    • name is the display name of the option

Allowed Input Fields

The input field argument option is allowed in the following input fields.

Examples

INPUT[select(option(banana), option(apple)):bind_target]
INPUT[select(
option(1, 1 Star),
option(2, 2 Stars),
option(3, 3 Stars),
option(4, 4 Stars),
option(5, 5 Stars)
):bind_target]