Skip to content

Commit 89e5210

Browse files
authored
docs: textInput (#72)
1 parent d21df69 commit 89e5210

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.changeset/lazy-shirts-warn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@coinbase/onchainkit': patch
3+
---
4+
5+
- **feat**: Added support for Text Input metadata for Farcaster Frames. By @taycaldwell #67
6+
- **feat**: Added `FrameMetadata` component, to help support metadata elements with classic React apps. By @zizzamia #71
7+
- **feat**: Added `OnchainName` component, to our Identity Kit. The `OnchainName` component primarily focuses on showcasing ENS names for given Ethereum addresses, and defaults to displaying a sliced version of the address when an ENS name isn't available. By @alvaroraminelli #49

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,17 @@ type Button = {
8383
action?: 'post' | 'post_redirect';
8484
};
8585

86+
type InputMetadata = {
87+
text: string;
88+
};
89+
8690
type FrameMetadata = {
8791
// A list of strings which are the label for the buttons in the frame (max 4 buttons).
8892
buttons?: [Button, ...Button[]];
8993
// An image which must be smaller than 10MB and should have an aspect ratio of 1.91:1
9094
image: string;
95+
// The text input to use for the Frame.
96+
input?: InputMetadata;
9197
// A valid POST URL to send the Signature Packet to.
9298
post_url?: string;
9399
// A period in seconds at which the app should expect the image to update.
@@ -237,11 +243,17 @@ type Button = {
237243
action?: 'post' | 'post_redirect';
238244
};
239245

246+
type InputMetadata = {
247+
text: string;
248+
};
249+
240250
type FrameMetadata = {
241251
// A list of strings which are the label for the buttons in the frame (max 4 buttons).
242252
buttons?: [Button, ...Button[]];
243253
// An image which must be smaller than 10MB and should have an aspect ratio of 1.91:1
244254
image: string;
255+
// The text input to use for the Frame.
256+
input?: InputMetadata;
245257
// A valid POST URL to send the Signature Packet to.
246258
post_url?: string;
247259
// A period in seconds at which the app should expect the image to update.

0 commit comments

Comments
 (0)