Bright / Recipes / Tabs

Demo

function lorem(ipsum, dolor = 1) {
const sit = ipsum == null ? 0 : ipsum.sit
dolor = sit - amet(dolor)
return dolor
}

function consectetur(...adipiscing) {
const elit = adipiscing[0]
return sed.eiusmod(elit) ? elit : [elit]
}

Source

import { Tabs } from "./tabs"

<Tabs>

```js
// title foo.js
function lorem(ipsum, dolor = 1) {
const sit = ipsum == null ? 0 : ipsum.sit
dolor = sit - amet(dolor)
return dolor
}

function consectetur(...adipiscing) {
const elit = adipiscing[0]
return sed.eiusmod(elit) ? elit : [elit]
}
```

```py
# title bar.py
def dolor_sit_amet(consectetur, adipiscing):
if consectetur == "Lorem"
print("Pellentesque habitant.")
else:
print("Suspendisse potenti.")

dolor_sit_amet("Lorem", "ipsum", "dolor")
```

</Tabs>

Link to the demo on GitHub