Skip to content
On this page

NcContent

Props

Prop nameDescriptionTypeValuesDefault
appNamestring-

Slots

NameDescriptionBindings
default

General description

This component provides the default container of all apps. It MUST be used as the main wrapper of your app. It includes the Navigation, the App content and the Sidebar.

Standard usage

vue
<template>
	<NcContent app-name="forms">
		<NcAppNavigation>
			<template #list>
				<NcAppNavigationNew text="Create article" />
				<NcAppNavigationItem title="My title" icon="icon-category-enabled" />
			</template>
		</NcAppNavigation>
		<NcAppContent>
			<h2>Your main app content here</h2>
			<NcButton @click="opened = !opened">Toggle sidebar</NcButton>
		</NcAppContent>
		<NcAppSidebar v-if="opened" title="cat-picture.jpg" @close="opened=false"></AppSidebar>
	</NcContent>
</template>
<script>
export default {
	data() {
		return {
			opened: false,
		}
	}
}
</script>