Frame
A frame round a box, in the app's style: the style's card radius, ring and shadow — for an aspect ratio, a table, any box that isn't a card.
Usage
import { Component, ViewEncapsulation } from '@angular/core';import { ScFrame } from '@semantic-components/ui';
@Component({ selector: 'app-frame-usage-demo', imports: [ScFrame], template: ` <div scFrame class="w-full max-w-sm p-6"> <p class="text-sm font-medium">Framed</p> <p class="text-muted-foreground text-sm"> The style's card corners, ring and shadow, round any box. </p> </div> `, host: { class: 'flex w-full justify-center' }, encapsulation: ViewEncapsulation.None,})export class FrameUsageDemo {}Anatomy
One directive, beside another part or on a plain box. Only the look: clipping is the box's (the aspect ratio clips, the table's container scrolls; on a plain box with an image, add overflow-hidden).
import { ScFrame } from '@semantic-components/ui';<div scFrame>…</div>Examples
Aspect Ratio

import { NgOptimizedImage } from '@angular/common';import { Component, ViewEncapsulation } from '@angular/core';import { ScAspectRatio, ScFrame } from '@semantic-components/ui';
/** A framed photo: the aspect ratio clips it to the frame's corners. */@Component({ selector: 'app-aspect-ratio-frame-demo', imports: [NgOptimizedImage, ScAspectRatio, ScFrame], template: ` <div scAspectRatio scFrame [ratio]="16 / 9" class="w-full max-w-sm">Table
| Plan | Seats | Price |
|---|---|---|
| Starter | 1 | $0 |
| Team | 10 | $49 |
| Business | 50 | $199 |
import { Component, ViewEncapsulation } from '@angular/core';import { ScFrame, ScTable, ScTableBody, ScTableCell, ScTableContainer, ScTableHeader, ScTableHeaderCell, ScTableRow,API reference
ScFrame — [scFrame]
The style's frame: the style's card radius, ring and shadow — square in lyra and sera, 4xl in luma.
| Input | Type | Default | Description |
|---|---|---|---|
class | string | '' | Classes merged over the style (cn: a later class wins). |