← Back to Components
Style
Visual style profiles controlling sizing, spacing, surfaces, elevation, and motion.
Interactive Playground
R Code
API Reference
block_style()
Selects a built-in visual style profile controlling control sizing, spacing, surfaces, elevation, focus treatment, and motion. Pass to block_page(style = ).
| Argument | Type | Default | Description |
|---|---|---|---|
| profile | character | 'default' | Built-in style profile name (see block_style_profiles()). |
| ... | character | NULL | Curated snake-case token overrides, e.g. control_height, surface_gap, surface_padding. |
| scope | character | NULL | Optional CSS selector to scope the profile to a subtree instead of the whole page. |
block_style_profiles()
Returns the character vector of built-in style-profile names accepted by block_style().
| Argument | Type | Default | Description |
|---|