text: /**
   * Copyright IBM Corp. 2016, 2018
   *
   * This source code is licensed under the Apache-2.0 license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  import PropTypes from 'prop-types';
  import React from 'react';
  import classnames from 'classnames';
  import { usePrefix } from '../../internal/usePrefix';
  
  const FormItem = ({ className, children, ...other }) => {
    const prefix = usePrefix();
    const classNames = classnames(`${prefix}--form-item`, className);
  
    return (
      <div className={classNames} {...other}>
        {children}
      </div>
    );
  };
  
  FormItem.propTypes = {
    /**
     * Provide content to be rendered in the form item
     */
    children: PropTypes.node,
  
    /**
     * Provide a custom className to be applied to the containing node
     */
    className: PropTypes.string,
  };
  
  export default FormItem;
  