UI
@semantic-components/ui — the components, the layouts and the utilities. The light ones in one entry point; those built on another library in entry points of their own, so an app carries that library only if it uses them.
The main entry point
Most components (Button, Dialog, Select, Sidebar, Menu…), the layouts, and the utilities: the setup (provideSemanticComponents), the theme (ScPresetManager), saved choices (ScStorage). It needs only Angular (core, common, router, forms, the CDK and Aria), RxJS, class-variance-authority and cn.
import { ScButton, ScPresetManager, provideSemanticComponents } from '@semantic-components/ui';Entry points
Each is built on another library — an optional peer of the package, so an app that doesn't use the entry point doesn't carry it.
| Entry point | Holds | Needs |
|---|---|---|
| ui/carousel | Carousel | embla-carousel |
| ui/charts | Charts: area, bar, line, pie, radar, radial, scatter, funnel, sunburst | d3-scale, d3-shape |
| ui/charts/sankey | Sankey chart | d3-sankey, d3-shape |
| ui/charts/treemap | Treemap chart | d3-hierarchy |
| ui/code-block | Code Block | shiki |
| ui/confetti | Confetti | canvas-confetti |
| ui/data-table | Data Table, Tree Table | @tanstack/angular-table |
| ui/editor | Editor | @tiptap/core, @tiptap/pm, @tiptap/starter-kit, @tiptap/extensions, @tiptap/extension-list |
| ui/editor/align | Editor: text alignment | @tiptap/extension-text-align |
| ui/editor/bubble-menu | Editor: bubble menu | @tiptap/extension-bubble-menu |
| ui/editor/highlight | Editor: highlight | @tiptap/extension-highlight |
| ui/editor/images | Editor: images | @tiptap/extension-image, @tiptap/extension-file-handler |
| ui/editor/markdown | Editor: Markdown | @tiptap/markdown |
| ui/editor/scripts | Editor: subscript, superscript | @tiptap/extension-subscript, @tiptap/extension-superscript |
| ui/editor/search | Editor: find and replace | @tiptap/extension-find-and-replace |
| ui/editor/tables | Editor: tables | @tiptap/extension-table |
| ui/i18n | Languages at run time | @angular/localize |
| ui/pdf-viewer | PDF Viewer | pdfjs-dist |
| ui/phone-input | Phone Input | libphonenumber-js |
| ui/qr-code | QR Code | uqr |
| ui/virtual-list | Virtual List | @tanstack/virtual-core |
import { ScCarousel, ScCarouselItem } from '@semantic-components/ui/carousel';