CSS

Customize your vuetify-form-base component using CSS-Classnames

Formbase Default-ID

#form-base is the default ID of your component. If you need different CSS for two or more forms in the same parent component, then change default value by setting a different ID for each component and use this new ID.

<!-- Default ID -->   
<v-form-base @input="handleInput" />  
<style>
    #form-base { background-color:#DDF; }
</style>

Formbase Custom-ID

<!-- Custom ID -->   
<v-form-base id="custom-id" @input="handleInput" />  
<style>
    #custom-id { color:#AAA; }
</style>

Class pointing to Type

Style all items of a specific type, then use type specific classnames. They start with type- appended by your [form-id]- followed by any component[type]. You can use all available types in your schema-object:

Class pointing to Key

Set class-name of deep key in your model-object, by converting .dot notation 'person.adress.city' into kebab case likeperson-adress-city prepending key- and [form-id]-

Validate with Pseudoselectors

CSS Code with Default ID

Last updated

Was this helpful?