rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Label

Form label with optional required indicator.

Examples

Basic

A simple form label.

Required

Label with a required asterisk indicator.

With Description

Label accompanied by a helper description.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Label } from "@rokle/components";
import { Label } from "@rokle/components";

export function Example() {
  return <Label />;
}

Source

The implementation source for this component. Copy it into your project and customise.

API Reference

PropTypeDefaultDescription
htmlForstring-ID of the associated input.
requiredbooleanfalseShow required indicator.