diff --git a/packages/docs/components/Checkbox.md b/packages/docs/components/Checkbox.md index 7dbe78460..085e98754 100644 --- a/packages/docs/components/Checkbox.md +++ b/packages/docs/components/Checkbox.md @@ -33,23 +33,24 @@ ### Props -| Prop name | Description | Type | Values | Default | -| ------------------ | -------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
checkbox: {
  autocomplete: "off"
}
| -| customValidity | Custom HTML 5 validation error to set on the form control | string \| ((currentValue: boolean, state: ValidityState) => string) | - | "" | -| disabled | Same as native disabled | boolean | - | false | -| falseValue | Overrides the returned value when it's not checked | string\|number\|boolean\|object | - | false | -| indeterminate | Same as native indeterminate | boolean | - | false | -| label | Input label, unnecessary when default slot is used | string | - | | -| v-model | The input value state | string\|number\|boolean\|object\|array | - | | -| name | Same as native name | string | - | | -| nativeValue | Same as native value | string\|number\|boolean\|object | - | | -| override | Override existing theme classes completely | boolean | - | | -| required | Same as native required | boolean | - | false | -| size | Size of the control | string | `small`, `medium`, `large` |
From config:
checkbox: {
  size: undefined
}
| -| trueValue | Overrides the returned value when it's checked | string\|number\|boolean\|object | - | true | -| useHtml5Validation | Enable HTML 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| -| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
checkbox: {
  variant: undefined
}
| +| Prop name | Description | Type | Values | Default | +| ------------------ | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
checkbox: {
  autocomplete: "off"
}
| +| customValidity | Custom HTML 5 validation error to set on the form control | string \| ((currentValue: boolean, state: ValidityState) => string) | - | "" | +| disabled | Same as native disabled | boolean | - | false | +| falseValue | Overrides the returned value when it's not checked | string\|number\|boolean\|object | - | false | +| id | Same as native id. Also set the for label for o-field wrapper - default is an uuid. | string | - | Default function (see source code) | +| indeterminate | Same as native indeterminate | boolean | - | false | +| label | Input label, unnecessary when default slot is used | string | - | | +| v-model | The input value state | string\|number\|boolean\|object\|array | - | | +| name | Same as native name | string | - | | +| nativeValue | Same as native value | string\|number\|boolean\|object | - | | +| override | Override existing theme classes completely | boolean | - | | +| required | Same as native required | boolean | - | false | +| size | Size of the control | string | `small`, `medium`, `large` |
From config:
checkbox: {
  size: undefined
}
| +| trueValue | Overrides the returned value when it's checked | string\|number\|boolean\|object | - | true | +| useHtml5Validation | Enable HTML 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| +| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
checkbox: {
  variant: undefined
}
| ### Events diff --git a/packages/docs/components/Radio.md b/packages/docs/components/Radio.md index c2ec02114..bdb83b4d1 100644 --- a/packages/docs/components/Radio.md +++ b/packages/docs/components/Radio.md @@ -33,19 +33,20 @@ ### Props -| Prop name | Description | Type | Values | Default | -| ------------------ | -------------------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
radio: {
  autocomplete: "off"
}
| -| disabled | Same as native disabled | boolean | - | false | -| label | Input label, unnecessary when default slot is used | string | - | | -| v-model | The input value state | string\|number\|boolean\|object | - | | -| name | Same as native name | string | - | | -| nativeValue | Same as native value | string\|number\|boolean\|object | - | | -| override | Override existing theme classes completely | boolean | - | | -| required | Same as native required | boolean | - | false | -| size | Size of the control | string | `small`, `medium`, `large` |
From config:
radio: {
  size: undefined
}
| -| useHtml5Validation | Enable html 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| -| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
radio: {
  variant: undefined
}
| +| Prop name | Description | Type | Values | Default | +| ------------------ | ----------------------------------------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
radio: {
  autocomplete: "off"
}
| +| disabled | Same as native disabled | boolean | - | false | +| id | Same as native id. Also set the for label for o-field wrapper - default is an uuid. | string | - | Default function (see source code) | +| label | Input label, unnecessary when default slot is used | string | - | | +| v-model | The input value state | string\|number\|boolean\|object | - | | +| name | Same as native name | string | - | | +| nativeValue | Same as native value | string\|number\|boolean\|object | - | | +| override | Override existing theme classes completely | boolean | - | | +| required | Same as native required | boolean | - | false | +| size | Size of the control | string | `small`, `medium`, `large` |
From config:
radio: {
  size: undefined
}
| +| useHtml5Validation | Enable html 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| +| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
radio: {
  variant: undefined
}
| ### Events diff --git a/packages/docs/components/Switch.md b/packages/docs/components/Switch.md index 69f52e906..fac769e84 100644 --- a/packages/docs/components/Switch.md +++ b/packages/docs/components/Switch.md @@ -33,24 +33,25 @@ ### Props -| Prop name | Description | Type | Values | Default | -| ------------------ | -------------------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
switch: {
  autocomplete: "off"
}
| -| disabled | Same as native disabled | boolean | - | false | -| falseValue | Overrides the returned value when it's not checked | string\|number\|boolean\|object | - | false | -| label | Input label, unnecessary when default slot is used | string | - | | -| v-model | The input value state | string\|number\|boolean\|object | - | | -| name | Name attribute on native checkbox | string | - | | -| nativeValue | Same as native value | string\|number\|boolean\|object | - | | -| override | Override existing theme classes completely | boolean | - | | -| passiveVariant | Color of the switch when is passive | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
switch: {
  passiveVariant: undefined
}
| -| position | Label position | string | - | "right" | -| required | Same as native required | boolean | - | false | -| rounded | Rounded style | boolean | - | true | -| size | Size of the control | string | `small`, `medium`, `large` |
From config:
switch: {
  size: undefined
}
| -| trueValue | Overrides the returned value when it's checked | string\|number\|boolean\|object | - | true | -| useHtml5Validation | Enable html 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| -| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
switch: {
  variant: undefined
}
| +| Prop name | Description | Type | Values | Default | +| ------------------ | ----------------------------------------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| autocomplete | Same as native autocomplete options to use in HTML5 validation | string | - |
From config:
switch: {
  autocomplete: "off"
}
| +| disabled | Same as native disabled | boolean | - | false | +| falseValue | Overrides the returned value when it's not checked | string\|number\|boolean\|object | - | false | +| id | Same as native id. Also set the for label for o-field wrapper - default is an uuid. | string | - | Default function (see source code) | +| label | Input label, unnecessary when default slot is used | string | - | | +| v-model | The input value state | string\|number\|boolean\|object | - | | +| name | Name attribute on native checkbox | string | - | | +| nativeValue | Same as native value | string\|number\|boolean\|object | - | | +| override | Override existing theme classes completely | boolean | - | | +| passiveVariant | Color of the switch when is passive | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
switch: {
  passiveVariant: undefined
}
| +| position | Label position | string | - | "right" | +| required | Same as native required | boolean | - | false | +| rounded | Rounded style | boolean | - | true | +| size | Size of the control | string | `small`, `medium`, `large` |
From config:
switch: {
  size: undefined
}
| +| trueValue | Overrides the returned value when it's checked | string\|number\|boolean\|object | - | true | +| useHtml5Validation | Enable html 5 native validation | boolean | - |
From config:
{
  useHtml5Validation: true
}
| +| variant | Color of the control | string | `primary`, `info`, `success`, `warning`, `danger`, `and any other custom color` |
From config:
switch: {
  variant: undefined
}
| ### Events diff --git a/packages/docs/components/Tabs.md b/packages/docs/components/Tabs.md index dac27b9b5..737fdba1c 100644 --- a/packages/docs/components/Tabs.md +++ b/packages/docs/components/Tabs.md @@ -82,7 +82,6 @@ sidebarDepth: 2 | Prop name | Description | Type | Values | Default | | --------- | --------------------------------------------------------------------------------- | ---------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| ariaRole | Role attribute to be passed to the div wrapper for better accessibility. | string | - |
From config:
tabs: {
  ariaRole: "tab"
}
| | disabled | Item will be disabled | boolean | - | false | | icon | Icon on the left | string | - |
From config:
tabs: {
  icon: undefined
}
| | iconPack | Icon pack | string | - |
From config:
tabs: {
  iconPack: undefined
}
| diff --git a/packages/docs/components/TabsExample.md b/packages/docs/components/TabsExample.md new file mode 100644 index 000000000..c21b2edcd --- /dev/null +++ b/packages/docs/components/TabsExample.md @@ -0,0 +1,48 @@ +# TabsExample + +
+ +
+ +
+ +## Examples + + + +
+
+ +## Class props + + + +
+ +
+ +## TabsExample component + +```html + +``` + +### Props + +| Prop name | Description | Type | Values | Default | +| ---------------- | ----------- | ------- | ------------------------- | -------------------------------------------------------------- | +| customNavigation | | boolean | - | false | +| hasNavigation | | boolean | - | false | +| isAnimated | | boolean | - | false | +| isProfileSuccess | | boolean | - | false | +| isRounded | | boolean | - | false | +| isStepsClickable | | boolean | - | false | +| isVertical | | boolean | - | false | +| labelPosition | | string | `bottom`, `left`, `right` | "bottom" | +| showSocial | | boolean | - | false | + +
+ +
+ +
diff --git a/packages/oruga/src/components/button/examples/icons.vue b/packages/oruga/src/components/button/examples/icons.vue index d90ab0090..544e49dbc 100644 --- a/packages/oruga/src/components/button/examples/icons.vue +++ b/packages/oruga/src/components/button/examples/icons.vue @@ -10,7 +10,7 @@
- +
diff --git a/packages/oruga/src/components/checkbox/Checkbox.vue b/packages/oruga/src/components/checkbox/Checkbox.vue index 0e65a1396..94ae97319 100644 --- a/packages/oruga/src/components/checkbox/Checkbox.vue +++ b/packages/oruga/src/components/checkbox/Checkbox.vue @@ -1,5 +1,5 @@