UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

11 lines 672 B
import { __rest } from "tslib"; import React from 'react'; import { css } from '@patternfly/react-styles'; import { MenuItem } from '../Menu'; const SelectOptionBase = (_a) => { var { children, className, innerRef, value } = _a, props = __rest(_a, ["children", "className", "innerRef", "value"]); return (React.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css(className) }, props), children)); }; export const SelectOption = React.forwardRef((props, ref) => (React.createElement(SelectOptionBase, Object.assign({}, props, { innerRef: ref })))); SelectOption.displayName = 'SelectOption'; //# sourceMappingURL=SelectOption.js.map