shiny.ui.tags.option#

shiny.ui.tags.option(*args, children=None, **kwargs)#

Create a <option> tag.

The <option> HTML element is used to define an item contained in a select, an optgroup, or a datalist element. As such, <option> can represent menu items in popups and other lists of items in an HTML document. Learn more at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

Parameters
  • *args – Child elements to this tag.

  • children (Optional[List[Union[Tagifiable, Tag, MetadataNode, str, TagList, float, None, Dict[str, Union[str, float, bool, None]], Sequence[Union[Tagifiable, Tag, MetadataNode, str, TagList, float, None, Dict[str, Union[str, float, bool, None]], Sequence[ForwardRef]]]]]]) – Child elements to this tag.

  • **kwargs – Attributes to this tag.

Return type

Tag