Skip to content

<sessions-option>

One choice in an sessions-select.

Preact & React<Option>GroupFormsDrawn asoption

Preview

Drawn by the same renderers Sessions uses for your extension, from the DOM example beside it, without its event handlers.

When to use it

Only meaningful inside sessions-select.

In Preact and React, import the component of the same name from @sessions/apps/preact or @sessions/apps/react. Attributes become camelCase props, a boolean attribute is a boolean prop, and an event is an on prop that receives the event’s detail.

Attributes

Attribute
valuerequired
The value the select reports.Prop value
Example
import {Option} from '@sessions/apps/preact';

<Option value="youtube">YouTube</Option>

In the same group