diff --git a/core/src/components/label/label.tsx b/core/src/components/label/label.tsx index 4d70f19eee..dc9884c1a3 100644 --- a/core/src/components/label/label.tsx +++ b/core/src/components/label/label.tsx @@ -1,12 +1,4 @@ -import { - Component, - Element, - Event, - EventEmitter, - Method, - Prop, - Watch -} from '@stencil/core'; +import { Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core'; import { Color, Mode, StyleEvent } from '../../interface'; import { createColorClasses } from '../../utils/theme'; diff --git a/core/src/components/label/readme.md b/core/src/components/label/readme.md index 988ee4922a..22821cfdda 100644 --- a/core/src/components/label/readme.md +++ b/core/src/components/label/readme.md @@ -1,7 +1,6 @@ # ion-label -Label is a wrapper element that can be used in combination with `ion-item` and `ion-input`. -The position of the label can be controlled to be either stacked, inline, or floating. +Label is a wrapper element that can be used in combination with `ion-item`, `ion-input`, `ion-toggle`, and more. The position of the label inside of an item can be inline, fixed, stacked, or floating. diff --git a/core/src/components/label/usage/angular.md b/core/src/components/label/usage/angular.md new file mode 100644 index 0000000000..684ac17e89 --- /dev/null +++ b/core/src/components/label/usage/angular.md @@ -0,0 +1,54 @@ +```html + +Label + + +Primary Label +Secondary Label +Danger Label +Light Label +Dark Label + + + + Default Item + + + + + Multi-line text that should wrap when it is too long + to fit on one line in the item. + + + + + + Default Input + + + + + Fixed + + + + + Floating + + + + + Stacked + + + + + Toggle + + + + + + Checkbox + +``` diff --git a/core/src/components/label/usage/javascript.md b/core/src/components/label/usage/javascript.md index 3469a73c1a..684ac17e89 100644 --- a/core/src/components/label/usage/javascript.md +++ b/core/src/components/label/usage/javascript.md @@ -1,24 +1,54 @@ ```html - - - Default - - - - Wrap label this label just goes on and on and on - - - - Fixed - - - - Floating - - - - Stacked - - - + +Label + + +Primary Label +Secondary Label +Danger Label +Light Label +Dark Label + + + + Default Item + + + + + Multi-line text that should wrap when it is too long + to fit on one line in the item. + + + + + + Default Input + + + + + Fixed + + + + + Floating + + + + + Stacked + + + + + Toggle + + + + + + Checkbox + ```