feat: Add ProgressBar component with skeleton status and documentation

- Implemented ProgressBar component to display progress based on states.
- Added EstatusEskeleton for loading state indication.
- Created documentation page for ProgressBar with examples and props table.
- Developed reusable CodeBlock and VistaComponente components for code display.
- Introduced IndiceContenido for navigation within documentation.
- Styled ProgressBar and related components with SCSS.
This commit is contained in:
jalvarado
2025-05-29 10:37:10 -06:00
parent 0195bf0778
commit 3e64837dd3
23 changed files with 681 additions and 377 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism';
export const CodeBlock = ({ code }: { code: string }) => (
<div className="position-relative">
<SyntaxHighlighter
language="tsx"
style={vscDarkPlus}
customStyle={{ margin: 0, padding: '1rem', borderRadius: '0.5rem' }}
>
{code}
</SyntaxHighlighter>
<button
className="btn btn-sm btn-light position-absolute top-0 end-0 m-2"
onClick={() => navigator.clipboard.writeText(code)}
>
<i className="bi bi-clipboard"></i>
</button>
</div>
);