Movatterモバイル変換


[0]ホーム

URL:


CoreUI Angular Logo
Framework:
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewAutocompletePRODate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

Angular Floating Labels Component

Angular floating label component. Create beautifully simple form labels that float over your input fields.

Example

Wrap a pair ofcFormControl andlabelelements incFormControl to enable floating labels with textual formfields. Aplaceholder is required on eachinputas our method of CSS-only floating labels uses the:placeholder-shownpseudo-element. Also note that thecFormControl must come first sowe can utilize a sibling selector (ex.,~).

Loading...
Loading...

When there's avalue already defined,cLabel will automatically adjust to their floated position.

Loading...
Loading...

Textareas

By default,textarea will be the same height asinput.

Loading...
Loading...

To set a custom height on yourtextarea, do not use the rows attribute. Instead, set an explicit height (eitherinline or via custom CSS).

Loading...
Loading...

Selects

Other thaninput, floating labels are only available oncSelect. They work in the same way, but unlikeinput, it always shows thecLabel in its floated state.

Selects withsize andmultiple are not supported.

Loading...
Loading...

Layout

When working with the CoreUI for Bootstrap grid system, be sure to place form elements within column classes.

Loading...
Loading...

API reference

Form Module


cFormFloating

directive

Inputs
namedescriptiontypedefault
cFormFloatingEnable floating labels.booleantrue

CoreUI for Angular is Open Source UI Components Library for Angular.

Currently v5.5.17 Code licensed MIT, docs CC BY 3.0 .
CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp