Skip to main content

Input

About 539 wordsAbout 2 min

Input

Props

PropTypeDefaultDescription
idstringAuto-generatedThe unique identifier for the input field.
iconstring-The icon used in the label (passed to FgLabel).
labelstring-The label text for the input field.
infostring-Additional information or hint displayed below the input (FgInfo).
errorstring-Error message to display (FgError).
sizestring-the input size (xs, sm, lg, xl, 'xxl')
modelValuestring | number''The bound value of the input field. Supports v-model.
placeholderstring-Placeholder text for the input.
disabledbooleanfalseWhether the input field is disabled.
typestring'text'Input type (e.g., text, password, email).
startIconstringnullIcon class to display at the start of the input (e.g., bi-person-fill).
endIconstringnullIcon class to display at the end of the input (e.g., bi-eye-fill).

Install

import { FgInput } from 'fadgram-vue'

Basic usage

Preview

username:

Input label & info

Preview
this is input info

Input label icon

Preview

Input error

Preview
Invalid username!

Input startIcon

Preview

Input endIcon

Preview

Input with startIcon & endIcon

Preview

Input size

Preview