Skip to content

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

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

'use client';

import {useState} from 'react';
import {InputGroup, InputGroupText} from '@astryxdesign/core/InputGroup';
import {TextInput} from '@astryxdesign/core/TextInput';

export default function InputGroupBasic() {
  const [price, setPrice] = useState('');

  return (
    <div style={{width: 320}}>
      <InputGroup label="Price">
        <InputGroupText>$</InputGroupText>
        <TextInput
          label="Amount"
          isLabelHidden
          value={price}
          onChange={setPrice}
          placeholder="0.00"
        />
        <InputGroupText>USD</InputGroupText>
      </InputGroup>
    </div>
  );
}