Skip to content

ButtonStylePreset

A utility class that provides common button style presets for both Material Design 3 and iOS (Cupertino).

Usage

typescript
import { ButtonStylePreset, Button } from 'fluekit';

// Material Filled Button
<Button :style="ButtonStylePreset.materialFilled">Click Me</Button>

Material Design 3 Presets

Based on the Material Design 3 Button Specs.

PresetDescriptionVisual Style
materialFilledHigh emphasis, best for key actions.Solid primary color background, white text, pill shape.
materialTonalMedium emphasis, alternative to filled.Light primary container background, primary text.
materialOutlinedMedium emphasis, best for secondary actions.Transparent background, primary border, primary text.
materialElevatedSeparation from background.Surface color background, shadow elevation.
materialTextLow emphasis, best for less prominent actions.Transparent background, no border, primary text.

iOS (Cupertino) Presets

Based on Apple's Human Interface Guidelines.

PresetDescriptionVisual Style
cupertinoFilledStandard iOS filled button.System blue background, white text, rounded corners.
cupertinoTintedSecondary iOS button.Light gray/tinted background, system blue text.
cupertinoPlainText-only button (like nav bar items).Transparent background, system blue text, no border.
cupertinoDestructiveDestructive actions.System red background, white text.