|
Download tabler-react/src/components/Nav/Nav.examples.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Nav/Nav.examples.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Nav/Nav.examples.md
-
curl -L -o Nav.examples.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Nav/Nav.examples.md
1.31 kB
<Nav>
<Nav.Item hasSubNav value="Page One" icon="globe">
<Nav.SubItem value="Sub Item 1" />
<Nav.SubItem>Sub Item 2</Nav.SubItem>
<Nav.SubItem icon="globe">Sub Item 3</Nav.SubItem>
</Nav.Item>
<Nav.Item to="http://www.example.com">Page Two</Nav.Item>
<Nav.Item value="Page Three" />
<Nav.Item active icon="user">
Page Four
</Nav.Item>
</Nav>
With item components from props
<Nav
items={
<React.Fragment>
<Nav.Item hasSubNav value="Page One" icon="globe">
<Nav.SubItem value="Sub Item 1" />
<Nav.SubItem>Sub Item 2</Nav.SubItem>
<Nav.SubItem icon="globe">Sub Item 3</Nav.SubItem>
</Nav.Item>
<Nav.Item to="http://www.example.com">Page Two</Nav.Item>
<Nav.Item value="Page Three" />
<Nav.Item active icon="user">
Page Four
</Nav.Item>
</React.Fragment>
}
/>
With item objects from props
<Nav
itemsObjects={[
{
value: "Page One",
icon: "globe",
subItems: [
{ value: "Sub Item 1" },
{ value: "Sub Item 2" },
{ value: "Sub Item 3", icon: "globe" },
],
},
{ value: "Page Two", to: "http://www.example.com" },
{ value: "Page Three" },
{ value: "Page Four", icon: "user", active: true },
]}
/>