# Class Dashboard
A component used for easily rendering a dashboard.
# Example
Here's how you can use the Dashboard component in a Vue application:
<template>
<Dashboard
v-if="dashboardProps"
:title="dashboardProps.title"
:layoutOptions="dashboardProps.layoutOptions"
:widgets="dashboardProps.widgets"
:filters="dashboardProps.filters"
:defaultDataSource="dashboardProps.defaultDataSource"
:widgetsOptions="dashboardProps.widgetsOptions"
:styleOptions="dashboardProps.styleOptions"
/>
</template>
<script setup lang="ts">
import { dashboardModelTranslator, useGetDashboardModel, Dashboard } from '@sisense/sdk-ui-vue';
import { computed } from 'vue';
const { dashboard } = useGetDashboardModel({
dashboardOid: '6441e728dac1920034bce737',
includeWidgets: true,
includeFilters: true,
});
const dashboardProps = computed(() =>
dashboard.value ? dashboardModelTranslator.toDashboardProps(dashboard.value) : null,
);
</script>
To learn more about this and related dashboard components, see Embedded Dashboards.
# Properties
# config
readonlyconfig?:DashboardConfig
The configuration for the dashboard
# defaultDataSource
readonlydefaultDataSource?:DataSource
The default data source to use for the dashboard
# filters
readonlyfilters?:FilterRelations|Filter[]
The dashboard filters to be applied to each of the widgets based on the widget filter options
# layoutOptions
readonlylayoutOptions?:DashboardLayoutOptions
Dashboard layout options
# styleOptions
readonlystyleOptions?:DashboardStyleOptions
The style options for the dashboard
# title
readonlytitle?:string
The title of the dashboard
# widgets
readonlywidgets:WidgetProps[]
The widgets to render in the dashboard
# widgetsOptions
readonlywidgetsOptions?:WidgetsOptions
The options for each of the widgets