• BSA Lab.
      home

  • apps
    Welcome
  • dashboard
    Layout
  • web
    Components
    keyboard_arrow_down
    • Lists
      list
    • Cards
      payment
    • Carousels
      recent_actors
    • Expansion panels
      view_day
    • Dialogs
      message
    • Tabs
      tab
    • Steppers
      directions_walk
    • Data tables
      view_module
    • Date/Time Pickers
      today
    • Text fields
      format_indent_increase
    • Forms
      assignment
  • alarm
    Warnings
    keyboard_arrow_down
    • Error-404
      alarm_add
    • Error-500
      alarm_on
    • Maintenance
      build
Vuetify / Components-text-fields
  • Documentation

  • Vuetify.js Quick-Start
  • Nuxt.js Guide
  • Vue.js Guide
Components - Text fields
Text fields components are used for collecting user provided information.
#1 With label
Text-fields come in two theme options, dark and light.
  • Normal with hint text/label
  • Focus
  • Normal with input text + label
  • Disabled

  • #2 Dark theme with label
    The dark theme compliments darker backgrounds.
  • Normal with hint text/label
  • Focus
  • Normal with input text + label
  • Disabled

  • #3 Single line light theme
    Single line text-fields do not float their label on focus or with data.
  • Normal with hint text
  • Press
  • Focus
  • Normal with input text
  • Error
  • Disabled

  • #4 Single line dark theme
    A single line label mimics the display of a placeholder.
  • Normal with hint text
  • Press
  • Focus
  • Normal with input text
  • Error
  • Disabled

  • #5 With Icon
    Icons can be specified as prepended or appended.
  • Normal with hint text
  • phone
    arrow_drop_down
    Enter or select a phone
  • Focus
  • phone
    arrow_drop_down
  • Normal with input text
  • phone
    arrow_drop_down

    #6 With Icon Dark
    The icon inherits the applications primary color on text-field focus.
  • Normal with hint text
  • phone
    arrow_drop_down
  • Focus
  • phone
    arrow_drop_down
  • Normal with input text
  • phone
    arrow_drop_down

    #7 Multi-Line
    A multi-line text-field is useful for larger amounts of text.
  • Normal with hint text
  • Focus
  • Normal with multi-line input text
  • Normal with multi-line input text

  • #8 Multi-Line Dark
    Multi-line text-fields can be set to autogrow allowing the field to scale with the input.
  • Normal with hint text
  • Focus
  • Normal with multi-line input text
  • Normal with multi-line input text

  • #9 Character counter
    Use a counter to inform a user of the maximum or minium character limit.
    33 / 50
    53 / 50

    #10 Password input
    A password input can be used with an appended icon and callback to control the visibility.
  • Normal with hint text
  • visibility_off
    8 / 25
  • Visible
  • visibility_off
  • Nonvisible
  • visibility_off
  • Error
  • visibility_off

    #11 Multi-line with character counter
    The rules prop accepts an array of callbacks. While validating rules, the current v-model value will be passed to the callback. This callback should return either true or a String, the error message.
    115 / 120
    124 / 120

    #12 Full-width text field with character counter
    Light theme.
    Compose
  • To
  • Trevor Hansen
    Alex Nelson


    118 / 120

    #13 Required fields
    Designates the input as required
    DMV Application
    Personal Info
    example of persistent helper text
    *indicates required field

    #14 Hint text
    Hint text and forces hint visible.
    Application

    Search for new keywords using a phrase, website or category

    Enter one or more of the following

    For example, flowers or used cars
    www.example.com/page
    arrow_drop_down
    Enter or select a product category

    #15 Prefixes & suffixes
    Displays prefix/suffix text.
  • Prefix for dollar currency
  • $
  • Suffix for weight
  • lbs
  • Suffix for email domain
  • @gmail.com
  • Suffix for time zone
  • PST

    #16 Custom validation
    If you want to skip the built in validation and use your own or a plugin such as vuelidate or vee-validation, you can use the errors or error props. Errors accepts a string or array and error simply places the field in an error state.
  • Input with error state
  • First name
  • Supplied errors
  • I cannot be empty
    Must be more than 2 characters

    #17 Textarea
    Textarea text-fields have an alternate style.
  • Light Theme

  • Dark Theme

  • © 2017 "BSA Lab." - All Rights Reserved