An open source design system that's fully customizable and agent ready
TypeScript
fix: blockquote example added (#3385)
mohitWeb-labe3831d65b65f
diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs b/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjsnew file mode 100644index 0000000000..16bd193287--- /dev/null+++ b/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs@@ -0,0 +1,14 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+export const doc = {+ type: 'block',+ exampleFor: 'Blockquote',+ name: 'Blockquote — Testimonials',+ displayName: 'Blockquote — Testimonials',+ description:+ 'Multiple quotes arranged in a card grid for a testimonials section. Combine with Card and Grid to create social-proof layouts.',+ isReady: true,+ aspectRatio: 4 / 3,+ componentsUsed: ['Blockquote', 'Card', 'Grid', 'GridSpan'],+};diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsx b/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsxnew file mode 100644index 0000000000..96b89c70e0--- /dev/null+++ b/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsx@@ -0,0 +1,34 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {Blockquote} from '@astryxdesign/core/Blockquote';+import {Grid, GridSpan} from '@astryxdesign/core/Grid';+import {Card} from '@astryxdesign/core/Card';++export default function BlockquoteTestimonials() {+ return (+ <Grid columns={2} gap={3} style={{maxWidth: 600}}>+ <Card padding={4}>+ <Blockquote cite="Sarah K., Lead Engineer">+ Shipping UI has never been this fast. Our team went from design to+ production in a single afternoon.+ </Blockquote>+ </Card>+ <Card padding={4}>+ <Blockquote cite="Marcus T., Product Designer">+ The token system means every new screen just looks right — no manual+ color or spacing decisions.+ </Blockquote>+ </Card>+ <GridSpan columns={2}>+ <Card padding={4}>+ <Blockquote cite="Priya L., Engineering Manager">+ Onboarding a new engineer used to take a week of design review. Now+ they're shipping accessible, polished components on day one.+ </Blockquote>+ </Card>+ </GridSpan>+ </Grid>+ );+}diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs b/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjsnew file mode 100644index 0000000000..6dee26de4f--- /dev/null+++ b/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs@@ -0,0 +1,14 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+export const doc = {+ type: 'block',+ exampleFor: 'Blockquote',+ name: 'Blockquote — With Attribution',+ displayName: 'Blockquote — With Attribution',+ description:+ 'A plain quote and a quote with a cite attribution. Use cite to credit the original author or source.',+ isReady: true,+ aspectRatio: 4 / 3,+ componentsUsed: ['Blockquote', 'Layout'],+};diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.tsx b/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.tsxnew file mode 100644index 0000000000..3a9d0a3e6d--- /dev/null+++ b/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.tsx@@ -0,0 +1,21 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {Blockquote} from '@astryxdesign/core/Blockquote';+import {VStack} from '@astryxdesign/core/Layout';++export default function BlockquoteWithCite() {+ return (+ <VStack gap={4} style={{maxWidth: 500}}>+ <Blockquote>+ Design is not just what it looks like and feels like. Design is how it+ works.+ </Blockquote>+ <Blockquote cite="Steve Jobs">+ The people who are crazy enough to think they can change the world are+ the ones who do.+ </Blockquote>+ </VStack>+ );+}