Skip to content

Paper ​

Elevations

Loading...

The Paper component is a container for displaying content on an elevated surface. Shadow styles are influenced by real-world physical counterparts. Supported elevation values: 0, 1, 2, 3, 4, 6, 8, 12, 16, 24. Other numeric values are accepted but produce no visible shadow.

  • Tag: <flint-paper>
  • Class: FlintPaper

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintPaper } from 'flint-ui';

Usage ​

html
<flint-paper></flint-paper>

Properties ​

PropertyAttributeTypeDefaultDescription
elevationelevationnumber1Shadow depth. Supported values: 0, 1, 2, 3, 4, 6, 8, 12, 16, 24. Other numeric values are accepted but produce no visible shadow.
squaresquarebooleanfalseIf true, the paper will have square corners (border-radius: 0).
variantvariant'elevated' | 'outlined' | 'flat''elevated'Visual variant. - elevated: raises the surface with a box-shadow (default) - outlined: flat surface with a visible border and no shadow - flat: flat surface with no shadow and no border

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-paper-padding0
--flint-surface-1—
--flint-text-color—
--flint-border-radius-md—
--flint-border-color—
--flint-surface-background-flat—