Inputs Config Flavors

The VueVentus Inputs Config maps to the .inputs property of your app VvConfig object. Global values should be set in your app.vv file, to be both provided and/or imported for use at the component level as a single source of truth for input element styling in your app.

Inputs Config Default

Contributor:@oberocks
            
                // ./src/app.vv.ts

                import { VvConfig } from '@obewds/vueventus'
                import type { ConfigVv } from '@obewds/vueventus'

                let appVv: ConfigVv = VvConfig
            
        
                    
                        appVv.inputs.border      = 'border'
                        appVv.inputs.display     = 'block w-full'
                        appVv.inputs.outline     = ''
                        appVv.inputs.placeholder = 'placeholder:opacity-50'
                        appVv.inputs.ring        = ''
                        appVv.inputs.rounding    = ''
                        appVv.inputs.shadow      = ''

                        appVv.inputs.sizes = {
                            'xs' : 'px-2 py-1.5 text-sm',
                            'md' : 'px-3 py-2 text-lg',
                            'lg' : 'px-4 py-3 text-xl',
                            'xl' : 'px-4 py-3 text-2xl',
                            '2xl': 'px-5 py-4 text-3xl',
                        }
                        
                        appVv.inputs.text       = ''
                        appVv.inputs.transition = appVv.transitions.classes('colors', 'inOut', '300')
                    
                
            
                export default appVv