UNPKG

mantis-app

Version:

M.A.N.T.I.S (MongoDB, Analog, Nx, Tailwind CSS, Ionic, Storybook) is not just a CLI tool; it's your passport to a seamless full-stack project launch.

35 lines (31 loc) 707 B
import type { Meta, StoryObj } from '@storybook/angular'; import { TodoItemComponent } from './todo-item.component'; const meta: Meta<TodoItemComponent> = { component: TodoItemComponent, title: 'TodoItemComponent', argTypes: { remove: { action: 'removed' }, completed: { action: 'completed' }, beginEdit: { action: 'editing begun' }, }, }; export default meta; type Story = StoryObj<TodoItemComponent>; export const Uncompleted: Story = { args: { todo: { _id: '1', title: 'Learn Mantis', completed: false, }, }, }; export const Completed: Story = { args: { todo: { _id: '1', title: 'Learn Mantis', completed: true, }, }, };