Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F Frontend
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vincula
  • Frontend
  • Merge requests
  • !4

Merged
Created Aug 23, 2025 by Francisco Coimbra Rotilli@francisco.rDeveloper

[21] Componente Input

  • Overview 22
  • Commits 15
  • Changes 10

[21] Componente Input

🔗 Task 21 [FE] | Componente Input

➕ O que foi adicionado?

Componente de input genérico.

🔧 O que foi modificado?

Adicionado dependências ao projeto incluindo mui (Material UI), jest, emotion, entre outras dependências.

❌ O que foi removido?

Nada.

🧪 Como testar?

<InputShowcase /> pode ser adicionado a page.tsx para visualizar no navegador.

Unit tests: npx vitest Input --coverage --coverage.include="**/components/input/Input.tsx"

❗ Informações adicionais

Props
  • onChange = {e => setValue(e.target.value)} // Optional, function
  • value = {value} // Only for useState, don't use directly
  • name = "Name" // Optional, string
  • id = "id-input" // Optional, string
  • variant = 'outlined' // Optional (default: outlined), 'outlined' | 'filled' | 'standard'
  • height = {40} // Optional (default: 40), number
  • type = "text" // Optional (defalut: "text"), 'text' | 'password' | 'email' | 'tel' | 'date' | 'time' | 'datetime-local' | 'search'
  • required = {true} // Optional (default: false), boolean
  • placeholder = "Placeholder" // Mandatory, string
  • disabled = {false} // Optional (default: false), boolean
  • label = "Label" // Optional, string
  • error = "Error message" // Optional, string
  • startIcon = {} // Optional, icon element https://mui.com/material-ui/material-icons/
  • endIcon = {} // Optional, icon element

📷 Screenshots

InputShowcase TestCoverage

Edited Aug 26, 2025 by Francisco Coimbra Rotilli
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 21/input-component