diff --git a/docs/components/input.md b/docs/components/input.md index 88e07265..c25bc824 100644 --- a/docs/components/input.md +++ b/docs/components/input.md @@ -1,12 +1,12 @@ @@ -104,33 +104,6 @@ const name = ref('') ``` -## Extra CSS classes - -Sometimes it is required to add some customization to the input or the input wrapper. -By default, `class` attribute is bound to the input element. To customize the input wrapper you can use the `block-classes` property. -It accepts the values as the `class` attribute - - -```vue - - - -``` - ## Slot - Helper @@ -218,22 +191,26 @@ const query = ref('') ```vue @@ -242,6 +219,44 @@ const query = ref('') import { ref } from 'vue' import { FwbInput } from 'flowbite-vue' -const email = ref('') +const name = ref('') ``` + +## Styling Inputs + +Use dedicated props to pass classes to individual elements. + + + +```vue + + + +``` + + +## Input component API + +### FwbInput Props +| Name | Type | Default | Description | +| ------------ | ---------------- | ------- | ------------------------------------------------------------ | +| wrapperClass | String \| Object | `''` | Added to main component wrapper | +| labelClass | String \| Object | `''` | Added to `