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.

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
elevationelevationnumber1Shadow depth. Supported values: 0, 1, 2, 3, 4, 6, 8, 12, 16, 24.
squaresquarebooleanfalseIf true, the paper will have square corners (border-radius: 0).
variantvariant'elevated' | 'outlined' | 'flat''elevated'Visual variant.

CSS Custom Properties ​

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