- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Icon
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner (Toast)
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
Sheet
Extends the Dialog component to display content that complements the main content of the screen.
import { Component } from '@angular/core';
import { provideIcons } from '@ng-icons/core';
import { lucideCross } from '@ng-icons/lucide';
import { HlmButtonImports } from '@spartan-ng/helm/button';
import { HlmInputImports } from '@spartan-ng/helm/input';
import { HlmLabelImports } from '@spartan-ng/helm/label';
import { HlmSheetImports } from '@spartan-ng/helm/sheet';
@Component({
selector: 'spartan-sheet-preview',
imports: [HlmSheetImports, HlmButtonImports, HlmInputImports, HlmLabelImports],
providers: [provideIcons({ lucideCross })],
template: `
<hlm-sheet side="right">
<button id="edit-profile" hlmSheetTrigger hlmBtn variant="outline">Open</button>
<hlm-sheet-content *hlmSheetPortal="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>
<div class="grid flex-1 auto-rows-min gap-6 px-4">
<div class="grid gap-3">
<label hlmLabel for="name" class="text-right">Name</label>
<input hlmInput id="name" value="Pedro Duarte" class="col-span-3" />
</div>
<div class="grid gap-3">
<label hlmLabel for="username" class="text-right">Username</label>
<input hlmInput id="username" value="@peduarte" class="col-span-3" />
</div>
</div>
<hlm-sheet-footer>
<button hlmBtn type="submit">Save Changes</button>
<button hlmSheetClose hlmBtn variant="outline">Close</button>
</hlm-sheet-footer>
</hlm-sheet-content>
</hlm-sheet>
`,
})
export class SheetPreview {}Installation
ng g @spartan-ng/cli:ui sheetnx g @spartan-ng/cli:ui sheetimport { DestroyRef, ElementRef, HostAttributeToken, Injector, PLATFORM_ID, effect, inject, runInInjectionContext } from '@angular/core';
import { clsx, type ClassValue } from 'clsx';
import { isPlatformBrowser } from '@angular/common';
import { twMerge } from 'tailwind-merge';
export function hlm(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// Global map to track class managers per element
const elementClassManagers = new WeakMap<HTMLElement, ElementClassManager>();
// Global mutation observer for all elements
let globalObserver: MutationObserver | null = null;
const observedElements = new Set<HTMLElement>();
interface ElementClassManager {
element: HTMLElement;
sources: Map<number, { classes: Set<string>; order: number }>;
baseClasses: Set<string>;
isUpdating: boolean;
nextOrder: number;
hasInitialized: boolean;
restoreRafId: number | null;
/** Transitions are suppressed until the first effect writes correct classes */
transitionsSuppressed: boolean;
/** Original inline transition value to restore after suppression (empty string = none was set) */
previousTransition: string;
/** Original inline transition priority to preserve !important when restoring */
previousTransitionPriority: string;
}
let sourceCounter = 0;
/**
* This function dynamically adds and removes classes for a given element without requiring
* the a class binding (e.g. `[class]="..."`) which may interfere with other class bindings.
*
* 1. This will merge the existing classes on the element with the new classes.
* 2. It will also remove any classes that were previously added by this function but are no longer present in the new classes.
* 3. Multiple calls to this function on the same element will be merged efficiently.
*/
export function classes(computed: () => ClassValue[] | string, options: ClassesOptions = {}) {
runInInjectionContext(options.injector ?? inject(Injector), () => {
const elementRef = options.elementRef ?? inject(ElementRef);
const platformId = inject(PLATFORM_ID);
const destroyRef = inject(DestroyRef);
const baseClasses = inject(new HostAttributeToken('class'), { optional: true });
const element = elementRef.nativeElement;
// Create unique identifier for this source
const sourceId = sourceCounter++;
// Get or create the class manager for this element
let manager = elementClassManagers.get(element);
if (!manager) {
// Initialize base classes from variation (host attribute 'class')
const initialBaseClasses = new Set<string>();
if (baseClasses) {
toClassList(baseClasses).forEach((cls) => initialBaseClasses.add(cls));
}
manager = {
element,
sources: new Map(),
baseClasses: initialBaseClasses,
isUpdating: false,
nextOrder: 0,
hasInitialized: false,
restoreRafId: null,
transitionsSuppressed: false,
previousTransition: '',
previousTransitionPriority: '',
};
elementClassManagers.set(element, manager);
// Setup global observer if needed and register this element
setupGlobalObserver(platformId);
observedElements.add(element);
// Suppress transitions until the first effect writes correct classes and
// the browser has painted them. This prevents CSS transition animations
// during hydration when classes change from SSR state to client state.
if (isPlatformBrowser(platformId)) {
manager.previousTransition = element.style.getPropertyValue('transition');
manager.previousTransitionPriority = element.style.getPropertyPriority('transition');
element.style.setProperty('transition', 'none', 'important');
manager.transitionsSuppressed = true;
}
}
// Assign order once at registration time
const sourceOrder = manager.nextOrder++;
function updateClasses(): void {
// Get the new classes from the computed function
const newClasses = toClassList(computed());
// Update this source's classes, keeping the original order
manager!.sources.set(sourceId, {
classes: new Set(newClasses),
order: sourceOrder,
});
// Update the element
updateElement(manager!);
// Re-enable transitions after the first effect writes correct classes.
// Deferred to next animation frame so the browser paints the class change
// with transitions disabled first, then re-enables them.
if (manager!.transitionsSuppressed) {
manager!.transitionsSuppressed = false;
manager!.restoreRafId = requestAnimationFrame(() => {
manager!.restoreRafId = null;
restoreTransitionSuppression(manager!);
});
}
}
// Register cleanup with DestroyRef
destroyRef.onDestroy(() => {
if (manager!.restoreRafId !== null) {
cancelAnimationFrame(manager!.restoreRafId);
manager!.restoreRafId = null;
}
if (manager!.transitionsSuppressed) {
manager!.transitionsSuppressed = false;
restoreTransitionSuppression(manager!);
}
// Remove this source from the manager
manager!.sources.delete(sourceId);
// If no more sources, clean up the manager
if (manager!.sources.size === 0) {
cleanupManager(element);
} else {
// Update element without this source's classes
updateElement(manager!);
}
});
/**
* We need this effect to track changes to the computed classes. Ideally, we would use
* afterRenderEffect here, but that doesn't run in SSR contexts, so we use a standard
* effect which works in both browser and SSR.
*/
effect(updateClasses);
});
}
function restoreTransitionSuppression(manager: ElementClassManager): void {
const prev = manager.previousTransition;
if (prev) {
manager.element.style.setProperty('transition', prev, manager.previousTransitionPriority || undefined);
} else {
manager.element.style.removeProperty('transition');
}
}
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
function setupGlobalObserver(platformId: Object): void {
if (isPlatformBrowser(platformId) && !globalObserver) {
// Create single global observer that watches the entire document
globalObserver = new MutationObserver((mutations) => {
for (const mutation of mutations) {
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
const element = mutation.target as HTMLElement;
const manager = elementClassManagers.get(element);
// Only process elements we're managing
if (manager && observedElements.has(element)) {
if (manager.isUpdating) continue; // Ignore changes we're making
// Update base classes to include any externally added classes
const currentClasses = toClassList(element.className);
const allSourceClasses = new Set<string>();
// Collect all classes from all sources
for (const source of manager.sources.values()) {
for (const className of source.classes) {
allSourceClasses.add(className);
}
}
// Any classes not from sources become new base classes
manager.baseClasses.clear();
for (const className of currentClasses) {
if (!allSourceClasses.has(className)) {
manager.baseClasses.add(className);
}
}
updateElement(manager);
}
}
}
});
// Start observing the entire document for class attribute changes
globalObserver.observe(document, {
attributes: true,
attributeFilter: ['class'],
subtree: true, // Watch all descendants
});
}
}
function updateElement(manager: ElementClassManager): void {
if (manager.isUpdating) return; // Prevent recursive updates
manager.isUpdating = true;
// Handle initialization: capture base classes after first source registration
if (!manager.hasInitialized && manager.sources.size > 0) {
// Get current classes on element (may include SSR classes)
const currentClasses = toClassList(manager.element.className);
// Get all classes that will be applied by sources
const allSourceClasses = new Set<string>();
for (const source of manager.sources.values()) {
source.classes.forEach((className) => allSourceClasses.add(className));
}
// Only consider classes as "base" if they're not produced by any source
// This prevents SSR-rendered classes from being preserved as base classes
currentClasses.forEach((className) => {
if (!allSourceClasses.has(className)) {
manager.baseClasses.add(className);
}
});
manager.hasInitialized = true;
}
// Get classes from all sources, sorted by registration order (later takes precedence)
const sortedSources = Array.from(manager.sources.entries()).sort(([, a], [, b]) => a.order - b.order);
const allSourceClasses: string[] = [];
for (const [, source] of sortedSources) {
allSourceClasses.push(...source.classes);
}
// Combine base classes with all source classes, ensuring base classes take precedence
const classesToApply =
allSourceClasses.length > 0 || manager.baseClasses.size > 0
? hlm([...allSourceClasses, ...manager.baseClasses])
: '';
// Apply the classes to the element
if (manager.element.className !== classesToApply) {
manager.element.className = classesToApply;
}
manager.isUpdating = false;
}
function cleanupManager(element: HTMLElement): void {
// Remove from global tracking
observedElements.delete(element);
elementClassManagers.delete(element);
// If no more elements being tracked, cleanup global observer
if (observedElements.size === 0 && globalObserver) {
globalObserver.disconnect();
globalObserver = null;
}
}
interface ClassesOptions {
elementRef?: ElementRef<HTMLElement>;
injector?: Injector;
}
// Cache for parsed class lists to avoid repeated string operations
const classListCache = new Map<string, string[]>();
function toClassList(className: string | ClassValue[]): string[] {
// For simple string inputs, use cache to avoid repeated parsing
if (typeof className === 'string' && classListCache.has(className)) {
return classListCache.get(className)!;
}
const result = clsx(className)
.split(' ')
.filter((c) => c.length > 0);
// Cache string results, but limit cache size to prevent memory growth
if (typeof className === 'string' && classListCache.size < 1000) {
classListCache.set(className, result);
}
return result;
}import type, { BooleanInput } from '@angular/cdk/coercion';
import type, { ClassValue } from 'clsx';
import { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
import { BrnSheet, BrnSheetClose, BrnSheetContent, BrnSheetDescription, BrnSheetOverlay, BrnSheetTitle, BrnSheetTrigger } from '@spartan-ng/brain/sheet';
import { ChangeDetectionStrategy, Component, Directive, ElementRef, Renderer2, booleanAttribute, computed, effect, forwardRef, inject, input, signal, untracked } from '@angular/core';
import { HlmButton } from '@spartan-ng/helm/button';
import { HlmIconImports } from '@spartan-ng/helm/icon';
import { classes, hlm } from '@spartan-ng/helm/utils';
import { cva } from 'class-variance-authority';
import { injectCustomClassSettable, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
import { lucideX } from '@ng-icons/lucide';
import { provideIcons } from '@ng-icons/core';
@Directive({
selector: 'button[hlmSheetClose]',
hostDirectives: [{ directive: BrnSheetClose, inputs: ['delay'] }],
host: {
'data-slot': 'sheet-close',
},
})
export class HlmSheetClose {}
export const sheetVariants = cva(
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
{
variants: {
side: {
top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
bottom:
'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
left: 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
right:
'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
},
},
defaultVariants: {
side: 'right',
},
},
);
@Component({
selector: 'hlm-sheet-content',
imports: [HlmIconImports, HlmButton, HlmSheetClose],
providers: [provideIcons({ lucideX })],
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
'data-slot': 'sheet-content',
'[attr.data-state]': 'state()',
},
template: `
<ng-content />
@if (showCloseButton()) {
<button hlmBtn variant="ghost" size="icon-sm" class="absolute end-4 top-4" hlmSheetClose>
<span class="sr-only">Close</span>
<ng-icon hlm size="sm" name="lucideX" />
</button>
}
`,
})
export class HlmSheetContent {
private readonly _stateProvider = injectExposesStateProvider({ host: true });
private readonly _sideProvider = injectExposedSideProvider({ host: true });
public readonly state = this._stateProvider.state ?? signal('closed');
private readonly _renderer = inject(Renderer2);
private readonly _element = inject(ElementRef);
public readonly showCloseButton = input<boolean, BooleanInput>(true, { transform: booleanAttribute });
constructor() {
classes(() => sheetVariants({ side: this._sideProvider.side() }));
effect(() => {
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
});
}
}
@Directive({
selector: '[hlmSheetDescription]',
hostDirectives: [BrnSheetDescription],
host: {
'data-slot': 'sheet-description',
},
})
export class HlmSheetDescription {
constructor() {
classes(() => 'text-muted-foreground text-sm');
}
}
@Directive({
selector: '[hlmSheetFooter],hlm-sheet-footer',
host: {
'data-slot': 'sheet-footer',
},
})
export class HlmSheetFooter {
constructor() {
classes(() => 'mt-auto flex flex-col gap-2 p-4');
}
}
@Directive({
selector: '[hlmSheetHeader],hlm-sheet-header',
host: {
'data-slot': 'sheet-header',
},
})
export class HlmSheetHeader {
constructor() {
classes(() => 'flex flex-col gap-1.5 p-4');
}
}
@Directive({
selector: '[hlmSheetOverlay],hlm-sheet-overlay',
hostDirectives: [BrnSheetOverlay],
host: {
'[class]': '_computedClass()',
},
})
export class HlmSheetOverlay {
private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
public readonly userClass = input<ClassValue>('', { alias: 'class' });
protected readonly _computedClass = computed(() =>
hlm(
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/50',
this.userClass(),
),
);
constructor() {
effect(() => {
const classValue = this._computedClass();
untracked(() => this._classSettable?.setClassToCustomElement(classValue));
});
}
}
@Directive({
selector: '[hlmSheetPortal]',
hostDirectives: [{ directive: BrnSheetContent, inputs: ['context', 'class'] }],
})
export class HlmSheetPortal {}
@Directive({
selector: '[hlmSheetTitle]',
hostDirectives: [BrnSheetTitle],
host: {
'data-slot': 'sheet-title',
},
})
export class HlmSheetTitle {
constructor() {
classes(() => 'text-foreground font-semibold');
}
}
@Directive({
selector: 'button[hlmSheetTrigger]',
hostDirectives: [{ directive: BrnSheetTrigger, inputs: ['id', 'side', 'type'] }],
host: {
'data-slot': 'sheet-trigger',
},
})
export class HlmSheetTrigger {}
@Component({
selector: 'hlm-sheet',
exportAs: 'hlmSheet',
imports: [HlmSheetOverlay],
providers: [
{
provide: BrnDialog,
useExisting: forwardRef(() => BrnSheet),
},
{
provide: BrnSheet,
useExisting: forwardRef(() => HlmSheet),
},
provideBrnDialogDefaultOptions({
// add custom options here
}),
],
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<hlm-sheet-overlay />
<ng-content />
`,
})
export class HlmSheet extends BrnSheet {}
export const HlmSheetImports = [
HlmSheet,
HlmSheetClose,
HlmSheetContent,
HlmSheetDescription,
HlmSheetFooter,
HlmSheetHeader,
HlmSheetOverlay,
HlmSheetPortal,
HlmSheetTitle,
HlmSheetTrigger,
] as const;Usage
import { HlmSheetImports } from '@spartan-ng/helm/sheet';<hlm-sheet>
<button hlmSheetTrigger hlmBtn variant="outline">Open</button>
<hlm-sheet-content *hlmSheetPortal="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>Examples
Sides
import { Component } from '@angular/core';
import { provideIcons } from '@ng-icons/core';
import { lucideCross } from '@ng-icons/lucide';
import { HlmButtonImports } from '@spartan-ng/helm/button';
import { HlmInputImports } from '@spartan-ng/helm/input';
import { HlmLabelImports } from '@spartan-ng/helm/label';
import { HlmSheetImports } from '@spartan-ng/helm/sheet';
@Component({
selector: 'spartan-sheet-side-preview',
imports: [HlmSheetImports, HlmButtonImports, HlmInputImports, HlmLabelImports],
providers: [provideIcons({ lucideCross })],
template: `
<hlm-sheet>
<div class="grid grid-cols-2 gap-2">
<button id="left" hlmSheetTrigger side="left" hlmBtn variant="outline">left</button>
<button id="right" hlmSheetTrigger side="right" hlmBtn variant="outline">right</button>
<button id="top" hlmSheetTrigger side="top" hlmBtn variant="outline">top</button>
<button id="bottom" hlmSheetTrigger side="bottom" hlmBtn variant="outline">bottom</button>
</div>
<hlm-sheet-content *hlmSheetPortal="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>
<div class="grid flex-1 auto-rows-min gap-6 px-4">
<div class="grid gap-3">
<label hlmLabel for="name" class="text-right">Name</label>
<input hlmInput id="name" value="Pedro Duarte" class="col-span-3" />
</div>
<div class="grid gap-3">
<label hlmLabel for="username" class="text-right">Username</label>
<input hlmInput id="username" value="@peduarte" class="col-span-3" />
</div>
</div>
<hlm-sheet-footer>
<button hlmBtn type="submit">Save Changes</button>
</hlm-sheet-footer>
</hlm-sheet-content>
</hlm-sheet>
`,
})
export class SheetSidePreview {}Size
You can adjust the size of the sheet by adding CSS classes to hlm-sheet-content .
import { Component } from '@angular/core';
import { provideIcons } from '@ng-icons/core';
import { lucideCross } from '@ng-icons/lucide';
import { HlmButtonImports } from '@spartan-ng/helm/button';
import { HlmInputImports } from '@spartan-ng/helm/input';
import { HlmLabelImports } from '@spartan-ng/helm/label';
import { HlmSheetImports } from '@spartan-ng/helm/sheet';
@Component({
selector: 'spartan-sheet-size-preview',
imports: [HlmSheetImports, HlmButtonImports, HlmInputImports, HlmLabelImports],
providers: [provideIcons({ lucideCross })],
template: `
<hlm-sheet side="right">
<button id="edit-profile" variant="outline" hlmSheetTrigger hlmBtn>Open</button>
<hlm-sheet-content *hlmSheetPortal="let ctx" class="w-[400px] sm:w-[540px] sm:max-w-none">
<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>
<div class="grid flex-1 auto-rows-min gap-6 px-4">
<div class="grid gap-3">
<label hlmLabel for="name" class="text-right">Name</label>
<input hlmInput id="name" value="Pedro Duarte" class="col-span-3" />
</div>
<div class="grid gap-3">
<label hlmLabel for="username" class="text-right">Username</label>
<input hlmInput id="username" value="@peduarte" class="col-span-3" />
</div>
</div>
<hlm-sheet-footer>
<button hlmBtn type="submit">Save Changes</button>
</hlm-sheet-footer>
</hlm-sheet-content>
</hlm-sheet>
`,
})
export class SheetSizePreview {}Close Sheet
import { Component, viewChild } from '@angular/core';
import { provideIcons } from '@ng-icons/core';
import { lucideCross } from '@ng-icons/lucide';
import { BrnSheet } from '@spartan-ng/brain/sheet';
import { HlmButtonImports } from '@spartan-ng/helm/button';
import { HlmLabelImports } from '@spartan-ng/helm/label';
import { HlmSheetImports } from '@spartan-ng/helm/sheet';
@Component({
selector: 'spartan-sheet-close-preview',
imports: [HlmSheetImports, HlmButtonImports, HlmLabelImports],
providers: [provideIcons({ lucideCross })],
template: `
<hlm-sheet #sheetRef side="right">
<button id="edit-profile" variant="outline" hlmSheetTrigger hlmBtn>Open</button>
<hlm-sheet-content *hlmSheetPortal="let ctx">
<hlm-sheet-header>
<h3 hlmSheetTitle>Sheet</h3>
</hlm-sheet-header>
<div class="grid flex-1 auto-rows-min gap-6 px-4">
<div class="grid gap-3">
<label hlmLabel>Close sheet by directive</label>
<button hlmBtn hlmSheetClose>Close</button>
</div>
<div class="grid gap-3">
<label hlmLabel>Close sheet by reference</label>
<button hlmBtn (click)="sheetRef.close({})">Close</button>
</div>
<div class="grid gap-3">
<label hlmLabel>Close sheet by viewChild reference</label>
<button hlmBtn (click)="closeSheet()">Close</button>
</div>
</div>
</hlm-sheet-content>
</hlm-sheet>
`,
})
export class SheetClosePreview {
public readonly viewChildSheetRef = viewChild(BrnSheet);
closeSheet() {
this.viewChildSheetRef()?.close({});
}
}Brain API
BrnSheetClose
Selector: button[brnSheetClose]
BrnSheetContent
Selector: [brnSheetContent]
BrnSheetDescription
Selector: [brnSheetDescription]
BrnSheetOverlay
Selector: [brnSheetOverlay],brn-sheet-overlay
BrnSheetTitle
Selector: [brnSheetTitle]
BrnSheetTrigger
Selector: button[brnSheetTrigger]
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| side | 'top' | 'bottom' | 'left' | 'right' | undefined | undefined | Override the side from where the sheet appears for this trigger. |
BrnSheet
Selector: [brnSheet],brn-sheet
ExportAs: brnSheet
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| side | 'top' | 'bottom' | 'left' | 'right' | top | Specifies the side of the screen where the sheet will appear. |
Helm API
HlmSheetClose
Selector: button[hlmSheetClose]
HlmSheetContent
Selector: hlm-sheet-content
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| showCloseButton | boolean | true | - |
HlmSheetDescription
Selector: [hlmSheetDescription]
HlmSheetFooter
Selector: [hlmSheetFooter],hlm-sheet-footer
HlmSheetHeader
Selector: [hlmSheetHeader],hlm-sheet-header
HlmSheetOverlay
Selector: [hlmSheetOverlay],hlm-sheet-overlay
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| class | ClassValue | - | - |
HlmSheetPortal
Selector: [hlmSheetPortal]
HlmSheetTitle
Selector: [hlmSheetTitle]
HlmSheetTrigger
Selector: button[hlmSheetTrigger]
HlmSheet
Selector: hlm-sheet
ExportAs: hlmSheet
On This Page