// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import type { JSXElement } from "@coreai-ds/react-components";
import { Field } from "@coreai-ds/react-components";
import type { LabelProps } from "@coreai-ds/react-components";
import { InfoLabel } from "@coreai-ds/react-components";
import { Input } from "@coreai-ds/react-components";
import * as React from 'react';

export const InField = (): JSXElement => (<Field label={{
        children: (_: unknown, props: LabelProps) => (<InfoLabel {...props} info="Example info">
          Field with info label
        </InfoLabel>),
    }}>
    <Input />
  </Field>);

export default InField;
