diff --git a/.changeset/stale-dodos-judge.md b/.changeset/stale-dodos-judge.md new file mode 100644 index 0000000..28774e7 --- /dev/null +++ b/.changeset/stale-dodos-judge.md @@ -0,0 +1,5 @@ +--- +"astro-portabletext": minor +--- + +Feat: Made `Block`, `List`, `ListItem` and `Mark` components available to be used to help extend custom components. diff --git a/component/lib/components.ts b/component/lib/components.ts new file mode 100644 index 0000000..1d641e4 --- /dev/null +++ b/component/lib/components.ts @@ -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";