UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.

33 lines 785 B
import * as React from "react"; import cx from "clsx"; import ListChoice from "../../ListChoice"; import CheckCircle from "../../icons/CheckCircle"; const InputSelectOption = ({ active, id, onClick, isSelected, title, description, prefix, ref }) => { return /*#__PURE__*/React.createElement("div", { className: cx(active && "[&_.orbit-list-choice]:bg-cloud-light") }, /*#__PURE__*/React.createElement(ListChoice, { id: id, onClick: onClick, ref: ref, tabIndex: -1, selected: isSelected, action: isSelected && /*#__PURE__*/React.createElement(CheckCircle, { ariaHidden: true, color: "info" }), role: "option", title: title, description: description, icon: prefix })); }; export default InputSelectOption;