Skip to content

Commit

Permalink
show grains on fields
Browse files Browse the repository at this point in the history
  • Loading branch information
customcommander committed Oct 4, 2024
1 parent 6f370c5 commit 84c2fca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/component-space.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import {LitElement, css, html} from 'lit';
import {
LitElement,
css,
html,
nothing,
} from 'lit';

class Space extends LitElement {
static styles = css`
Expand All @@ -24,12 +29,14 @@ class Space extends LitElement {
`;

static properties = {
type: {}
type: {},
grain: {}
}

render() {
return html`
<div>
<span>${this.grain ?? nothing}</span>
<slot></slot>
</div>
`;
Expand Down

0 comments on commit 84c2fca

Please sign in to comment.