From 83dd95518a1db82b68406ddd42bf8557ca1951cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20UB?= <22903142+adrian-ub@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:18:11 -0500 Subject: [PATCH] docs: add FAQ component --- docs/src/components/faq.ts | 47 +++++++++++++++++++++++++++++++++ docs/src/content/docs/index.mdx | 6 +++++ 2 files changed, 53 insertions(+) create mode 100644 docs/src/components/faq.ts diff --git a/docs/src/components/faq.ts b/docs/src/components/faq.ts new file mode 100644 index 0000000..c0959bd --- /dev/null +++ b/docs/src/components/faq.ts @@ -0,0 +1,47 @@ +import { UbAccordionContentDirective, UbAccordionDirective, UbAccordionItemDirective, UbAccordionTriggerDirective } from '@/registry/new-york/ui/accordion' + +import { Component } from '@angular/core' + +@Component({ + standalone: true, + imports: [ + UbAccordionDirective, + UbAccordionItemDirective, + UbAccordionTriggerDirective, + UbAccordionContentDirective, + ], + selector: 'shadcn-ng-faq', + template: ` +
The idea behind this is to give you ownership and control over the code, allowing you to decide how the components are built and styled.
+ +Start with some sensible defaults, then customize the components to your needs.
+ +One of the drawbacks of packaging the components in an npm package is that the style is coupled with the implementation. The design of your components should be separate from their implementation.
+Yes. Free to use for personal and commercial projects. No attribution required.
+But hey, let me know if you do. I'd love to see what you build.
+