Documentation menu · Button
Button

EnhancedGlassButton

A button with richer glass states for hero moments.

Live previewProduction package import

#Overview

Loading preview
Status
live
Category
Button
Package
aura-glass

#Install and Import

Install the package once, import the component from the public entry, and load styles a single time at the app root.

shell
npm install aura-glass
import
import { EnhancedGlassButton } from 'aura-glass'
styles
import 'aura-glass/styles';

#Examples

Three baseline shapes flagship components use across docs and AI-agent guidance:

Basic

tsx
import { EnhancedGlassButton } from 'aura-glass';
import 'aura-glass/styles';

export function EnhancedGlassButtonExample() {
  return (
    <EnhancedGlassButton
      aria-label="Button example"
    />
  );
}

Production

tsx
import { EnhancedGlassButton, GlassCard } from 'aura-glass';
import 'aura-glass/styles';

export function EnhancedGlassButtonSurface() {
  return (
    <GlassCard depth="medium" tint="neutral">
      <EnhancedGlassButton
        aria-label="Button production surface"
      />
    </GlassCard>
  );
}

Contained

tsx
import { EnhancedGlassButton, GlassCard } from 'aura-glass';
import 'aura-glass/styles';

export function EnhancedGlassButtonContainedPreview() {
  return (
    <GlassCard style={{ maxWidth: 420 }}>
      <EnhancedGlassButton />
    </GlassCard>
  );
}

#Accessibility

Keep visible labels and semantic structure around this surface. Confirm keyboard order, focus visibility, disabled states, and text contrast over the actual backdrop used by the app.

#SSR and Performance

Import from the public package entrypoint, load `aura-glass/styles` once, and keep expensive data, media, or animation work outside the visual component unless the product needs it.

#Theming

Theme with public props, `className`, `style`, and AuraGlass CSS variables. Avoid private DOM selectors so the component can upgrade with the package.