Files
logseq/packages/ui/examples/index.tsx
Charlie d9bc7fb61b refactor(ui): remove the radix primitives (#11832)
* refactor(ui): remove cloned radix primitives

* fix(ui): radix dialog warning

* fix(ui): remove radix toast warning
2025-04-25 13:02:10 +08:00

26 lines
573 B
TypeScript

import '../src/index.css'
import { setupGlobals } from '../src/ui'
import * as React from 'react'
import * as ReactDOM from 'react-dom'
// @ts-ignore
import { Button } from '@/components/ui/button'
// bootstrap
setupGlobals()
function App() {
return (
<main className={'p-8'}>
<h1 className={'text-red-500 mb-8'}>
Hello, Logseq UI :)
</h1>
<Button asChild>
<a href={'https://google.com'} target={'_blank'}>go to google.com</a>
</Button>
</main>
)
}
// mount app
ReactDOM.render(<App/>, document.querySelector('#app'))