// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {useState} from 'react'; import {TextInput} from '@astryxdesign/core/TextInput'; import {Stack} from '@astryxdesign/core/Layout'; import {Text} from '@astryxdesign/core/Text'; export default function TextInputStatusVariant() { const [attached, setAttached] = useState('sarah@'); const [detached, setDetached] = useState('sarah@'); return (
attached (default) Message overlaps directly below the input. detached Message floats below as a separate element with spacing.
); }