Skip to content

Instantly share code, notes, and snippets.

@nolimits4web
Last active January 28, 2020 15:58
Show Gist options
  • Select an option

  • Save nolimits4web/0b5e398226cbdb873fdc93601a855ba8 to your computer and use it in GitHub Desktop.

Select an option

Save nolimits4web/0b5e398226cbdb873fdc93601a855ba8 to your computer and use it in GitHub Desktop.
Framework7 Svelte
<App { params }>
<View main url="/" />
</App>
<script>
import { App, View } from 'framework7-svelte';
import Home from './pages/home.svelte';
const params = {
// ...
routes: [
{
path: '/',
component: Home,
},
// ...
]
}
</script>
<Page>
<Navbar large title="My App"/>
<Block strong>
<p>Welcome to my app!</p>
<Button fill large>Button</Button>
</Block>
<List>
<ListItem title="Item 1" />
<ListItem title="Item 2" />
</List>
</Page>
<script>
import { Page, Navbar, Block, Button, List, ListItem } from 'framework7-svelte';
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment