@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
16 lines (15 loc) • 569 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { __rest } from "tslib";
import { h } from "@stencil/core";
import { createRelatedUniqueId } from "../../utils/dev.utils";
const SuggestionsFc = (_a) => {
var { id, suggestions } = _a, other = __rest(_a, ["id", "suggestions"]);
if (!suggestions) {
return null;
}
return (h("datalist", Object.assign({ id: createRelatedUniqueId(id, 'list') }, other), suggestions.map((option) => (h("option", { value: option })))));
};
export default SuggestionsFc;
//# sourceMappingURL=Suggestions.js.map