mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
* removed daisy from config * removed tw-elements artefact * removed comments from tailwind config * removed safelist * migrated to tailwind4 and daisyui5 * deleted tailwind.config.js which is not eeded anymore * 3.0.79 * version number * fixed broken layouts * more fixing * more layout fixing * tested theming * small fixes * adapt snapshots to changes * package.json: add unit test update script * more ui refactoring & theme controller * ui improvements * package-lock.json * fix linting * fixed tabs * fix linting * fixed typing --------- Co-authored-by: mahula <lenzmath@posteo.de>
26 lines
749 B
TypeScript
26 lines
749 B
TypeScript
import { useState } from 'react'
|
|
|
|
import MarkdownSVG from '#assets/markdown.svg'
|
|
|
|
export const MarkdownHint = () => {
|
|
const [expended, setExpended] = useState<boolean>(false)
|
|
return (
|
|
<div
|
|
onClick={() => setExpended(true)}
|
|
title='Markdown is supported'
|
|
className='flex tw:flex-row tw:text-gray-400 tw:cursor-pointer tw:items-center'
|
|
>
|
|
<img src={MarkdownSVG} alt='Markdown' className='octicon octicon-markdown tw:gray-400' />
|
|
{expended && (
|
|
<a
|
|
href='https://www.markdownguide.org/cheat-sheet/#basic-syntax'
|
|
target='_blank'
|
|
rel='noreferrer'
|
|
>
|
|
<span className='Button-label tw:ml-1'>Markdown is support</span>{' '}
|
|
</a>
|
|
)}
|
|
</div>
|
|
)
|
|
}
|