Sheet

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

Installation

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

Usage

import { BrnSheetContentDirective, BrnSheetTriggerDirective } from '@spartan-ng/brain/sheet';
import {
  HlmSheet
  HlmSheetContent
  HlmSheetDescription
  HlmSheetFooter
  HlmSheetHeader
  HlmSheetTitle
} from '@spartan-ng/helm/sheet';
<hlm-sheet>
    <button brnSheetTrigger>Edit Profile</button>
    <hlm-sheet-content *brnSheetContent='let ctx'>
        <hlm-sheet-header>
            <h3 hlmSheetTitle>Edit Profile</h3>
            <p hlmSheetDescription>Make changes to your profile here. Click save when you're done.</p>
        </hlm-sheet-header>
    </hlm-sheet-content>
</hlm-sheet>

Brain API

BrnSheetClose

Selector: button[brnSheetClose]

BrnSheetContent

Selector: [brnSheetContent]

BrnSheetDescription

Selector: [brnSheetDescription]

BrnSheetOverlay

Selector: brn-sheet-overlay

BrnSheetTitle

Selector: [brnSheetTitle]

BrnSheetTrigger

Selector: button[brnSheetTrigger]

Inputs

PropTypeDefaultDescription
side 'top' | 'bottom' | 'left' | 'right' | undefined undefined -

BrnSheet

Selector: brn-sheet

ExportAs: brnSheet

Inputs

PropTypeDefaultDescription
side 'top' | 'bottom' | 'left' | 'right' top -

Helm API

HlmSheetClose

Selector: [hlmSheetClose],[brnSheetClose][hlm]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetContent

Selector: hlm-sheet-content

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetDescription

Selector: [hlmSheetDescription]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetFooter

Selector: hlm-sheet-footer

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetHeader

Selector: hlm-sheet-header

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetOverlay

Selector: [hlmSheetOverlay],brn-sheet-overlay[hlm]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheetTitle

Selector: [hlmSheetTitle]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmSheet

Selector: hlm-sheet

ExportAs: hlmSheet

Examples

Sides

Close Sheet

Skeleton Separator