Skip to content

checkbox: стилизация, сторисы, обёртки#15

Merged
khaliulin merged 6 commits into
feature/styles-debugfrom
form.checkbox
Apr 15, 2026
Merged

checkbox: стилизация, сторисы, обёртки#15
khaliulin merged 6 commits into
feature/styles-debugfrom
form.checkbox

Conversation

@khaliulin
Copy link
Copy Markdown
Contributor

No description provided.

@persi14
Copy link
Copy Markdown
Collaborator

persi14 commented Apr 14, 2026

Добавь story c label. Я почему то не могу делать коммит. Либо дай права

import { Component } from '@angular/core';
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { JsonPipe } from '@angular/common';
import { StoryObj } from '@storybook/angular';
import { CheckboxComponent } from '../../../../lib/components/checkbox/checkbox.component';

const template = `

Checkbox {{formControl.value | json}} `;

@component({
selector: 'app-checkbox-label',
standalone: true,
imports: [CheckboxComponent, ReactiveFormsModule, JsonPipe],
template,
})
export class CheckboxLabelComponent {
formControl: FormControl = new FormControl(false);
}

export const Label: StoryObj = {
render: () => ({
template: <app-checkbox-label></app-checkbox-label>,
}),
parameters: {
docs: {
description: { story: 'Пример использования чекбокса с label.' },
source: {
language: 'ts',
code: `
import { Component } from '@angular/core';
import { FormControl, FormsModule } from '@angular/forms';
import { StoryObj } from '@storybook/angular';
import { CheckboxComponent } from '../../../../lib/components/checkbox/checkbox.component';

const template = `

Checkbox {{formControl.value}} \`;

@component({
selector: 'app-checkbox-label',
standalone: true,
imports: [CheckboxComponent, FormsModule],
template,
})
export class CheckboxLabelComponent {
formControl: FormControl = new FormControl(false);
}

    `,
  },
},

},
};

Как код не могу добавить т.к. тут много символов

@khaliulin khaliulin merged commit 032cdd7 into feature/styles-debug Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants