-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
162 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { $LitElement } from '@mhmo91/lit-mixins/src' | ||
import { customElement } from 'lit/decorators.js' | ||
import { css, html } from 'lit' | ||
|
||
@customElement('demo-tree') | ||
export class DemoTree extends $LitElement(css` | ||
:host { | ||
display: block; | ||
} | ||
`) { | ||
render() { | ||
return html` | ||
<schmancy-grid gap="md"> | ||
<schmancy-tree active> | ||
<div slot="root">root</div> | ||
<schmancy-list> | ||
<schmancy-list-item>Item 1.1</schmancy-list-item> | ||
<schmancy-list-item>Item 1.2</schmancy-list-item> | ||
<schmancy-list-item>Item 1.3</schmancy-list-item> | ||
</schmancy-list> | ||
</schmancy-tree> | ||
</schmancy-grid> | ||
` | ||
} | ||
} | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'demo-tree': DemoTree | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
It looks like you're interested in creating a README for a custom web component named `schmancy-tree`. A README file typically includes information about the component's purpose, usage, installation, and possibly some examples. Here's a template you can use and customize according to your specific component's features and requirements: | ||
|
||
--- | ||
|
||
# Schmancy Tree Component | ||
|
||
## Overview | ||
|
||
The `schmancy-tree` component is a customizable tree view designed for web applications. It allows for hierarchical data to be displayed in a structured, collapsible tree format. | ||
|
||
## Features | ||
|
||
- **Customizable Layout**: Easily style the tree view to match your application's theme. | ||
- **Expand/Collapse**: Users can expand or collapse branches to view the information that's relevant to them. | ||
- **Nested Items**: Supports multiple levels of nesting for complex hierarchical data. | ||
|
||
## Installation | ||
|
||
To use `schmancy-tree` in your project, follow these steps: | ||
|
||
1. Install the component via npm: | ||
``` | ||
npm install schmancy-tree | ||
``` | ||
2. Import the component in your JavaScript file: | ||
```javascript | ||
import 'schmancy-tree/schmancy-tree.js' | ||
``` | ||
|
||
## Usage | ||
|
||
Here is a basic example of how to use the `schmancy-tree` component in your HTML: | ||
|
||
```html | ||
<schmancy-tree> | ||
<div slot="root">root</div> | ||
<schmancy-list> | ||
<schmancy-list-item>Item 1.1</schmancy-list-item> | ||
<schmancy-list-item>Item 1.2</schmancy-list-item> | ||
<schmancy-list-item>Item 1.3</schmancy-list-item> | ||
</schmancy-list> | ||
</schmancy-tree> | ||
``` | ||
|
||
## Customization | ||
|
||
You can customize the appearance and behavior of `schmancy-tree` using CSS and JavaScript. For detailed documentation on available properties and events, see [Customization Guide](#). | ||
|
||
## Contributing | ||
|
||
We welcome contributions to the `schmancy-tree` project. Please read our [Contributing Guidelines](#) for more information on how to get involved. | ||
|
||
## License | ||
|
||
`schmancy-tree` is licensed under the [MIT License](#). | ||
|
||
--- | ||
|
||
Feel free to adjust the content to match the actual capabilities and usage of your component. This template is just a starting point. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters