Frontend for Miracle TV
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.5 KiB

<h2>Pages in Storybook</h2>
We recommend building UIs with a
<a href="" target="_blank" rel="noopener noreferrer">
process starting with atomic components and ending with pages.
Render pages with mock data. This makes it easy to build and review page states without
needing to navigate to them in your app. Here are some handy patterns for managing page data
in Storybook:
Use a higher-level connected component. Storybook helps you compose such data from the
"args" of child component stories
Assemble data in the page component from your services. You can mock these services out
using Storybook.
Get a guided tutorial on component-driven development at
<a href="" target="_blank" rel="noopener noreferrer"
>Learn Storybook</a
. Read more in the
<a href="" target="_blank" rel="noopener noreferrer">docs</a>
<div class="tip-wrapper">
<span class="tip">Tip</span>
Adjust the width of the canvas with the
<svg width="10" height="10" viewBox="0 0 12 12" xmlns="">
<g fill="none" fill-rule="evenodd">
d="M1.5 5.2h4.8c.3 0 . 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 . 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 . 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
Viewports addon in the toolbar
import './page.css';
import MyHeader from './Header.vue';
export default {
name: 'my-page',
components: { MyHeader },
props: {
user: {
type: Object,
methods: {
onLogin() {
onLogout() {
onCreateAccount() {