Skip to main content

Paper

The sj-paper component is a basic surface component that can be used to build other components.

Props

PropTypeOptionsDefault
variant'default' │ 'flat' │ 'outlined' │ 'filled'default, flat, outlined, filled'default'
component'div' │ 'section' │ 'article'div, section, article'div'
usePaint'none' │ 'auto' │ 'primary' │ 'secondary' │ 'success' │ 'info' │ 'warning' │ 'error' │ 'dark' │ 'neutral' │ 'light'none, auto, primary, secondary, success, info, warning, error, dark, neutral, light'none'
usePadding'none' │ 'compact' │ 'default' │ 'comfortable' │ 'spacious' │ 1 │ 2 │ 3 │ 4none, compact, default, comfortable, spacious, 1, 2, 3, 4'default'
useRounded'none' │ 'compact' │ 'default' │ 'comfortable' │ 'spacious' │ 1 │ 2 │ 3 │ 4none, compact, default, comfortable, spacious, 1, 2, 3, 4'default'
playgroundSjSjStyle │ SjStyle[]-undefined

Examples

Flat

<sj-paper variant="flat" usePadding="default" useRounded="default">Flat paper</sj-paper>

Outlined

<sj-paper variant="outlined" usePaint="none" usePadding="comfortable" useRounded="comfortable">Outlined paper</sj-paper>

Live Example

If the embed doesn’t load, open it directly: Open on StackBlitz.