# Bluesky Post ## Example ```svelte {#each feed as item (item.post.uri)}
{/each} {#if feed.length === 0}
Loading posts...
{/if}
``` ## Documentation The `BlueskyPost` component renders a Bluesky post directly from the raw API response (`PostView`). It handles converting the data, rich text facets, embeds, and NSFW labels automatically. Fetch posts using the [Bluesky API](https://docs.bsky.app/docs/api/app-bsky-feed-get-author-feed) and pass each post's `post` and `reason` fields directly to the component. Use `blueskyPostToPostData` if you need to convert the data yourself for use with the generic `Post` component. ## API Reference ### BlueskyPost Renders a Bluesky post from raw API data (PostView). | Prop | Type | Default | Description | |------|------|---------|-------------| | data | `PostView` | `-` | The raw Bluesky PostView data from the API. (required) | | reason | `any` | `-` | The feed reason (e.g. repost info) from the API response. | | reply | `any` | `-` | The feed reply context (parent/root) from the API response. Used to show "replying to" banner. | | baseUrl | `string` | `'https://bsky.app'` | Base URL for all generated links. Change this to point to a custom client. | | hrefs | `{ profile?: (handle, did?) => string; post?: (handle, postId) => string; hashtag?: (tag) => string }` | `-` | Override individual URL builders. Each function overrides the default baseUrl-based pattern. | | target | `string` | `'_blank'` | The target attribute for all links. | | showLogo | `boolean` | `false` | Whether to show the Bluesky butterfly logo in the header. | | showAvatar | `boolean` | `true` | Whether to show the author avatar. | | compact | `boolean` | `false` | Whether to use a compact layout. | | actions | `ActionButtonsProps` | `-` | Override the default action buttons. By default, shows reply/repost/like counts linking to the post. | | embeds | `Embed[]` | `-` | Override the automatically extracted embeds. | | showSensitive | `boolean` | `true` | Whether to show the sensitive content overlay on flagged embeds. |