CommentComposer
A filled reply box under a post that grows with its text, with emoji, a GIF, a voice note and a send button.
CommentComposer
CommentComposer is the reply box under a post. It is one filled field that grows with its text, with the send button inside it. The emoji, GIF, voice note and send buttons fold away until the reader focuses the field or starts a draft, and it shows a GIF waiting to go. The host owns the draft, the chosen GIF, the GIF picker and the recorder. Enter starts a new line, and Cmd or Ctrl with Enter posts.
Storybook
Loading
Props
Prop
Type
Also takes the attributes of the element it renders.
Tokens
Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.
--augds-background-sunken-1--augds-fill-2--augds-foreground-brand-readable--augds-foreground-primary--augds-foreground-secondary--augds-interaction-focus-ring--augds-radius-primitive-16--augds-radius-primitive-20--augds-status-error-fg--augds-surface-surface-1
Source
src/components/ui/comment-composer/comment-composer.tsx