feat: Add more base component to UI

This commit is contained in:
deytenit committed 2026-02-01 16:24:45 +03:00
1 parent ca20310460
commit df2abc06f2
116 files changed
+10379 -3473

No files matched your search

@@ -0,0 +1,26 @@
import React from 'react';
import { Paragraph } from './Paragraph';
import { render, screen } from '../../test-utils';
describe('components/Paragraph', () => {
it('renders as a p tag by default', () => {
render(<Paragraph>Content</Paragraph>);
expect(screen.getByText('Content').tagName).toBe('P');
});
it('applies gutterBottom', () => {
render(<Paragraph gutterBottom>Content</Paragraph>);
expect(screen.getByText('Content')).toHaveClass('mb-4');
});
it('applies indent', () => {
render(<Paragraph indent>Content</Paragraph>);
expect(screen.getByText('Content')).toHaveClass('indent-8');
});
it('passes through Text props like align', () => {
render(<Paragraph align="center">Content</Paragraph>);
expect(screen.getByText('Content')).toHaveClass('text-center');
});
});