Castle logo

CASTLE UI

Search

K

Castle UI provides visual components to help you build forms in an extensible way.

Usage

Import

import {
FormControl,
FormLabel,
FormHint,
FormError,
Input,
} from '@passfort/castle'

Copy

Basic Field

Copy

live example

Invalid

Copy

live example

Input Group


Useful for connecting two inputs together. Use the flex property to adjust the sizes of different inputs.

import { InputGroup } from '@passfort/castle'

Copy

Copy

live example

Form Controls

Wrapper component to list FormControls

import { FormControl, FormControls } from '@passfort/castle'

Copy

Copy

live example

Native Validation

If you are not using some other type of form validation, you can set nativeValidation to use in-built HTML form validation.

Copy

live example

You can also disable native validation by passing noValidate to form HTML element:

Copy

live example

Contents