TwitterGithub

Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Installation

npx nx g @spartan-ng/nx:ui sheet

Usage

import {
  BrnSheetCloseDirective,
  BrnSheetComponent,
  BrnSheetContentDirective,
  BrnSheetDescriptionDirective,
  BrnSheetOverlayComponent,
  BrnSheetTitleDirective,
  BrnSheetTriggerDirective,
} from '@spartan-ng/ui-sheet-brain';
import {
  HlmSheetCloseDirective,
  HlmSheetContentDirective,
  HlmSheetDescriptionDirective,
  HlmSheetFooterComponent,
  HlmSheetHeaderComponent,
  HlmSheetOverlayDirective,
  HlmSheetTitleDirective,
} from '@spartan-ng/ui-sheet-helm';
<brn-sheet>
    <brn-sheet-overlay hlm />
    <button brnSheetTrigger>Edit Profile</button>
    <div hlmSheetContent *brnSheetContent="let ctx">
        <hlm-sheet-header>
            <h3 brnSheetTitle hlm>Edit Profile</h3>
            <p brnSheetDescription hlm>Make changes to your profile here. Click save when you're done.</p>
        </hlm-sheet-header>
    </div>
</brn-sheet>

Examples

Sides

Skeleton Separator