Tailwind CSS Select - Props

The following props are available for select component. These are the custom props that come with we've added for the select component and you can use all the other native props as well.

Attribute Type Description Default
variantVariant Change input variant outlined
sizeSize Change input size md
colorColor Change input color blue
labelstring Add label for input ''
errorboolean Change input state to error false
successboolean Change input state to success false
animationboolean Change alert animation false
optionsarray Set data to be shown in select []
item-textstring Set property of items’s text value name
item-valuestring Set property of items’s value value

Dependencies

  • v-click-outside

Types - Variant

type variant = "standard" | "outlined" | "static"
            

Types - Size

type size = "md" | "lg"
            

Types - Color

type variant = 
      | "blue-gray"
      | "gray"
      | "brown"
      | "deep-orange"
      | "orange"
      | "amber"
      | "yellow"
      | "lime"
      | "light-blue"
      | "blue"
      | "teal"
      | "cyan"
      | "light-blue"
      | "blue"
      | "indigo"
      | "deep-purple"
      | "purple"
      | "pink"
      | "red"
        

Options - Examples

{
  name: string | number
  value: string | number
  disabled: boolean
}