How to use the @aws-amplify/ui.formField function in @aws-amplify/ui

To help you get started, we’ve selected a few @aws-amplify/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-amplify / amplify-js / packages / aws-amplify-react / src / Amplify-UI / Amplify-UI-Components-React.jsx View on Github external
export const FormField = (props) => {
    const theme = props.theme || AmplifyTheme;
    const style = propStyle(props, theme.formField);
    const p = JS.objectLessAttributes(props, 'theme');
    return beforeAfter(
        <div style="{style}">
            {props.children}
        </div>
    );
};