Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
521 B
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {FieldLabel} from '@astryxdesign/core/Field';
import {VStack} from '@astryxdesign/core/Layout';

export default function FieldLabelBasic() {
  return (
    <VStack gap={4}>
      <FieldLabel label="Email address" inputID="email-input" isRequired />
      <FieldLabel
        label="Phone number"
        inputID="phone-input"
        isOptional
        description="Include country code for international numbers"
      />
    </VStack>
  );
}