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
CoreUI PRO for Angular This component is part of CoreUI PRO – a powerful UI library with over 250 components and 25+ templates, designed to help you build modern, responsive apps faster. Fully compatible with Angular, Bootstrap, React.js, and Vue.js. Get CoreUI PRO

Angular Password Input directive

A fully customizable Angular password input directive with Bootstrap styling. Includes toggle visibility, validation, sizing options, and accessibility support.

Introduced inPro v5.4.12+

ThecFormPassword is a fully featured Angular password input field built with Bootstrap and CoreUI. It includes built-in password visibility toggling, sm / lg sizing options, and support for disabled, readOnly, and form validation states. Ideal for login forms, signup screens, and any secure input in your Angular app.

Examples

Loading...
Loading...

Sizing

Use thesizing prop to control the height and padding of the input. Available options:

  • sizing="sm" – small input
  • sizing="lg" – large input
Loading...
Loading...

Disabled

Add thedisabled attribute to make the password input uneditable. This also dims the field to indicate it's inactive.

Loading...
Loading...

Readonly

Use thereadOnly prop to make the input non-editable while still allowing the text to be copied. Unlike disabled, it keeps the default cursor.

Loading...
Loading...

Floating Label

Use thefloatingLabel prop to add a floating label to the password input. This is useful for forms where you want to save space and keep the label visible when the user interacts with the field.

Loading...
Loading...

Validation status

Use thevalid prop to indicate the validation status of the input. Set it totrue for valid,false for invalid, or leave itundefined for default styling.

Loading...
Loading...

Forms

Angular handles password input through reactive forms and template-driven forms. CoreUI Password Input directive supports both.

Customizing

SASS variables

Angular CoreUI Password Input directive use Sass variables for enhanced customization.

  • $input-* are shared across most of our form controls (and not buttons).
  • $form-password-* are for ourcFormPassword directive.

API reference

Form Module

Form Password Standalone

cFormPassword

directive


Inputs
namedescriptiontypedefault
disabledToggle thedisabled state for the input.booleanfalse
floatingLabelFloating label for the input.stringundefined
readOnlyToggle thereadonly state for the input.booleanfalse
sizingSize of the input.lg | smundefined
showPasswordShow password toggle.booleanfalse
validValidation state of the input.boolean | undefinedundefined
ariaLabelTogglerAria label for the show password toggle.stringToggle password visibility

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