Type something to try out
nuxt-float-label
dependency to your project# Using npm
npm i -D nuxt-float-label
nuxt-float-label
to the modules
section of nuxt.config.js
{
modules: [
'nuxt-float-label'
]
}
Name | Type | Description | Required |
---|---|---|---|
label | String | Overrides placeholder | No |
label-class | String | Attribute a custom class to the label | No |
dispatch | Boolean | Shows float label on mount | No |
To use on nuxt.config.ts
Name | Type | Description |
---|---|---|
useCss | Boolean | Choose to use the default css or a custom one |
nuxtFloatLabel: {
useCss: false
}
Name | Description |
---|---|
fl-wrapper | Wrapper class |
fl-label | Label class |
fl-on-focus | Label on focus and blur event |
fl-on-input | Label on input event |