diff --git a/.changeset/genesis-docs-callout.md b/.changeset/genesis-docs-callout.md new file mode 100644 index 0000000000..ef01953959 --- /dev/null +++ b/.changeset/genesis-docs-callout.md @@ -0,0 +1,7 @@ +--- +"@paper/genesis": minor +--- + +feat(genesis): add GnDocsCallout admonition primitive (#593) + +A headless callout/admonition component for `tip`, `note`, `warning`, `caution`, and `important` types. Colors inherit from the active v0 theme via severity tokens (with standalone fallbacks); the `icon` and `title` slots override the inline-SVG and label defaults. diff --git a/apps/docs/src/components/docs/DocsCallout.vue b/apps/docs/src/components/docs/DocsCallout.vue index 98b3ca3410..a09e501731 100644 --- a/apps/docs/src/components/docs/DocsCallout.vue +++ b/apps/docs/src/components/docs/DocsCallout.vue @@ -1,4 +1,6 @@ + + + + + + diff --git a/packages/genesis/src/components/GnDocsCallout/index.ts b/packages/genesis/src/components/GnDocsCallout/index.ts new file mode 100644 index 0000000000..e6fbe586d6 --- /dev/null +++ b/packages/genesis/src/components/GnDocsCallout/index.ts @@ -0,0 +1,2 @@ +export type { GnDocsCalloutProps, GnDocsCalloutType } from './GnDocsCallout.vue' +export { default as GnDocsCallout } from './GnDocsCallout.vue' diff --git a/packages/genesis/src/components/index.ts b/packages/genesis/src/components/index.ts index 7d7b89a833..5dc5fa40c1 100644 --- a/packages/genesis/src/components/index.ts +++ b/packages/genesis/src/components/index.ts @@ -1,4 +1,5 @@ export * from './GnActionButton' +export * from './GnDocsCallout' export * from './GnDocsExample' export * from './GnDotGrid' export * from './GnPeek'