Sadrazam – Form Patterns Showcase

Label combos, helper text, dividers, input groups, and standard form layout

.form-input--error

Applies a red border to any input in an error state

Normal
Error
.form-input--error

.form-toggle-password-visibility

Password input with a show/hide toggle button positioned inside the field

Password
.form-toggle-password-visibility
With Error
.form-toggle-password-visibility + .form-input--error

.form-field--top-label

Label above, input below, shared grey background with bottom border focus effect

Text Input
.form-field--top-label
With Value
With Warning
*[data-type="warningMessage"]

.form-field--checkbox

Checkbox with label, flex layout, cursor pointer, user-select none

Checkbox
.form-field--checkbox
Checked
With Warning
*[data-type="warningMessage"]

.label-text-input-type-two

Label above (separate), input below with standard border and focus color

Text Input
.label-text-input-type-two
With Value
With Warning
*[data-type="warningMessage"]

.label-checkbox-input-type-two

Checkbox variant with flex layout, same pattern as type one but different warning spacing

Checkbox
.label-checkbox-input-type-two
Checked
With Warning
*[data-type="warningMessage"]

Type One vs Type Two — Side by Side

Visual comparison of the two label-input combo styles

Type One
.form-field--top-label
Type Two
.label-text-input-type-two

.input-helper-text

Small descriptive text below form fields, with an optional question-mark variant

Basic
Must be at least 8 characters with one uppercase letter and one number.
.input-helper-text

With ? Mark
Your Tax ID is a unique number assigned by the tax authority. You can find it on your tax return or official correspondence.
.input-helper-text--with-qmark

Type One + Helper
This will be visible to other users on the platform.
Type One + ? Mark
If you were referred by another user, enter their referral code here to receive a bonus.

.form-divider

Section heading with a horizontal line extending to the right — used to separate form sections

Default
Personal Information
Contact Details
Preferences
Class .form-divider

.form-layout--standard

Standard form layout rules — adds consistent spacing between label, fieldset, and form-label-like elements

With Layout
Account Setup
Must be at least 8 characters.
Profile
Notifications
Class .form-layout--standard

.form-fieldset

Base fieldset class — legend spacing. Structure: <fieldset><legend> (optional) → <div> → content

Base
Multi-language Field
🇹🇷
🇬🇧
Class .form-fieldset

.form-fieldset--inline

Radio/checkbox options displayed inline — uses <div> wrapper for flex layout

Inline
Invoice Type
Gender
Class .form-fieldset .form-fieldset--inline

.form-label-hint

Small, subtle hint text inside labels — typically used for "(optional)" notes

Usage
Class .form-label-hint

Complete Form Example

All form pattern classes used together in a realistic registration form

Account
Use at least 8 characters, mixing letters, numbers, and symbols for better security.
Personal Info
Optional. This helps us personalize your experience.
Agreements