Skip to content

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

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

'use client';

import {useState} from 'react';
import {TextArea} from '@astryxdesign/core/TextArea';
import {PencilSquareIcon} from '@heroicons/react/24/outline';

export default function TextAreaWithIcon() {
  const [value, setValue] = useState('');

  return (
    <div style={{width: 400}}>
      <TextArea
        label="Meeting notes"
        description="Capture key decisions and action items."
        value={value}
        onChange={setValue}
        placeholder="What was discussed?"
        startIcon={PencilSquareIcon}
      />
    </div>
  );
}