From d9f48a5f2ae32893bce5bf85db96b8bf400758b8 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 26 Aug 2022 09:11:09 -0400 Subject: [PATCH] update examples --- docs/components/tree.md | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/components/tree.md b/docs/components/tree.md index dd4bad8c..2e1b3ecf 100644 --- a/docs/components/tree.md +++ b/docs/components/tree.md @@ -289,14 +289,14 @@ const App = () => { }; ``` -### Custom expanded/collapsed icons +### Custom expand/collapse icons Use the `expand-icon` and `collapse-icon` slots to change the expand and collapse icons, respectively. ```html preview - - + + Deciduous @@ -332,8 +332,8 @@ import { SlTree, SlTreeItem } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - - + + Deciduous @@ -372,40 +372,40 @@ Decorative icons can be used before labels to provide hints for each node. - Root + Documents - Folder 1 + Photos - - File 1 - 1 - - - - File 1 - 2 + + birds.jpg - - File 1 - 3 + + kitten.jpg + + + + puppy.jpg - - Folder 2 + + Writing - - File 2 - 1 + + draft.txt - - File 2 - 2 + + final.pdg + + + + sales.txt - - - - File 1