Skip to content

Create ValidatedTextField component #1482

@trillium

Description

@trillium

Overview

Part of #1481

Action Items

  • Create a text field component that is modeled off of the code in the one used in the ProjectForm component.
  • Imports
    • { Box, TextField, Grid, InputLabel } from mui -- scaffolding parts
  • Props:
    • name: <string>
    • label: <string> -- optional
    • register: function destructured off of parent component's useForm hook
    • getValues: funtion destructured off of parent component's useForm hook
    • data: object that will hold one instance from simpleInput.
      Looks like
    {
      label: 'Project Name',
      name: 'name',
      type: 'text',
      placeholder: 'Enter project name',
    }

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Final QA (product)

Relationships

None yet

Development

No branches or pull requests

Issue actions