s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Content · Components

ContentContributionPortal

No summary has been written for ContentContributionPortal. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { ContentContributionPortal } from '@happyvertical/smrt-content/svelte';
Import path
@happyvertical/smrt-content/svelte
Props
5
Props described
5 of 5
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
contributionsContentContributionData[]NoList of contributions submitted by the user.
selectedIdstring | nullNoID of the contribution currently displayed for detail viewing.
emptyMessagestringNoMessage shown when the contributions list is empty.
onSelect(contribution: ContentContributionData) => voidNoFired when the user selects a contribution from the list.
onWithdraw(contribution: ContentContributionData) => voidNoFired when the user withdraws a pending contribution.

Bindable state

This component has no bindable public state.

Callback events

  • onSelect(contribution: ContentContributionData) => void
  • onWithdraw(contribution: ContentContributionData) => void

Examples and explanation