Crud Styling
Style Variants
CRUD supports the following style variants:
| Variant | Description | Supported by |
|---|---|---|
| Removes border around the CRUD component | Aura, Lumo |
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…} selector.
See Component Style Properties for more information on style properties.
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
The following properties are specific to the editor, when it is positioned aside or at the bottom:
| Property | Supported by |
|---|---|
| Aura, Lumo |
| Aura, Lumo |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
- Root element
-
vaadin-crud
Grid
- Grid element
-
vaadin-crud> vaadin-grid - Grid element, non-Flow
-
vaadin-crud> vaadin-crud-grid - Edit button in grid
-
vaadin-crud-edit - Edit button icon
-
vaadin-crud-edit::part(icon)::before - Toolbar below grid
-
vaadin-crud::part(toolbar)
See Grid selectors for details on styling the grid
Toolbar
- Toolbar
-
vaadin-crud::part(toolbar) - New item button
-
vaadin-crud> vaadin-button[slot="new-button"]
Editor
- Editor header
-
vaadin-crud::part(header) - Editor footer
-
vaadin-crud::part(footer) - Editor title
-
vaadin-crud> [slot="header"] - Editor form
-
vaadin-crud-form - Save button
-
vaadin-crud> vaadin-button[slot="save-button"] - Cancel button
-
vaadin-crud> vaadin-button[slot="cancel-button"] - Delete button
-
vaadin-crud> vaadin-button[slot="delete-button"]