Skip to content

Commit

Permalink
feat: make primary components accessible
Browse files Browse the repository at this point in the history
`Block`, `List`, `ListItem` and `Mark`
  • Loading branch information
theisel committed Aug 31, 2022
1 parent f8b9a06 commit a6bfa8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-dodos-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-portabletext": minor
---

Feat: Made `Block`, `List`, `ListItem` and `Mark` components available to be used to help extend custom components.
11 changes: 11 additions & 0 deletions component/lib/components.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export { default as Block } from "../components/Block.astro";
export type { Props as BlockProps } from "../components/Block.astro";

export { default as List } from "../components/List.astro";
export type { Props as ListProps } from "../components/List.astro";

export { default as ListItem } from "../components/ListItem.astro";
export type { Props as ListItemProps } from "../components/ListItem.astro";

export { default as Mark } from "../components/Mark.astro";
export type { Props as MarkProps } from "../components/Mark.astro";

0 comments on commit a6bfa8e

Please sign in to comment.