lion/packages/ui/components/listbox/LionOptions.js
2022-10-31 16:55:07 +01:00

31 lines
552 B
JavaScript

import { LitElement } from 'lit';
import { FormRegistrarPortalMixin } from '@lion/ui/form-core.js';
/**
* LionOptions
*/
export class LionOptions extends FormRegistrarPortalMixin(LitElement) {
static get properties() {
return {
role: {
type: String,
reflect: true,
},
tabIndex: {
type: Number,
reflect: true,
attribute: 'tabindex',
},
};
}
constructor() {
super();
this.role = 'listbox';
this.tabIndex = 0;
}
createRenderRoot() {
return this;
}
}