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 { BrnSheetContent, BrnSheetTrigger } from '@spartan-ng/brain/sheet';
import {
  HlmSheet
  HlmSheetContent
  HlmSheetDescription
  HlmSheetFooter
  HlmSheetHeader
  HlmSheetTitle
} from '@spartan-ng/helm/sheet';
<hlm-sheet>
  <button brnSheetTrigger>Open</button>
  <hlm-sheet-content *brnSheetContent="let ctx">
    <hlm-sheet-header>
      <h3 hlmSheetTitle>Are you absolutely sure?</h3>
      <p hlmSheetDescription>
        This action cannot be undone. This will permanently delete your account and remove your data from our servers.
      </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 Override the side from where the sheet appears for this trigger.

BrnSheet

Selector: brn-sheet

ExportAs: brnSheet

Inputs

PropTypeDefaultDescription
side 'top' | 'bottom' | 'left' | 'right' top Specifies the side of the screen where the sheet will appear.

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

Size

You can adjust the size of the sheet by adding CSS classes to hlm-sheet-content .

Close Sheet

Skeleton Separator