Skip to content

Forms

BaseInput

Themed text and numeric input with error, placeholder, and v-model support.

Playground

Live preview generated for BaseInput inside this component page.

This preview is compiled into the VitePress docs build from the published SDK package.

Import

ts
import { BaseInput } from "@morscherlab/mint-sdk/components"

Basic Usage

vue
<FormField label="Panel name" :error="errors.name" field-id="panel-name">
  <template #default="{ describedBy }">
    <BaseInput v-model="name" :aria-describedby="describedBy" />
  </template>
</FormField>

Back to component library

MINT is open source. Made by the Morscher Lab.