framesjs/frames.js

Type '{ label: string; }' is not assignable to type 'FrameButton'

anuragasawa20 opened this issue · 1 comments

how should I assign the label in button

If you are using jsx then

<Button action="post">My label</Button>

if you aren't using JSX then you have 2 options.

Plain button definition

{ action: 'post', label: 'My Label' }

Using button() helper

button({ action: 'post', label: 'My Label' })

See the documentation https://framesjs.org/reference/core/Button#post-button there is bunch of examples.