Bright / Recipes / Tabs
Demo
foo.js
bar.py
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
app/page.mdx
app/tabs.js
app/extension.js
app/client.js
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>