mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
feat: add selector to fonts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import "@workspace/ui/globals.css"
|
||||
import { Button } from "@workspace/ui/components/ui/button"
|
||||
import { Button } from "@workspace/ui/components/button"
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button } from "@workspace/ui/components/ui/button"
|
||||
import { Button } from "@workspace/ui/components/button"
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
@@ -10,7 +10,7 @@ export default function Page() {
|
||||
<p>We've already added the button component for you.</p>
|
||||
<Button className="mt-2">Button</Button>
|
||||
</div>
|
||||
<div className="font-mono text-xs text-muted-foreground">
|
||||
<div className="text-muted-foreground font-mono text-xs">
|
||||
(Press <kbd>d</kbd> to toggle dark mode)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button } from "@workspace/ui/components/ui/button"
|
||||
import { Button } from "@workspace/ui/components/button"
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { Button } from "@workspace/ui/components/ui/button"
|
||||
import { Button } from "@workspace/ui/components/button"
|
||||
|
||||
export const Route = createFileRoute("/")({ component: App })
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button } from "@workspace/ui/components/ui/button"
|
||||
import { Button } from "@workspace/ui/components/button"
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
@@ -10,7 +10,7 @@ export function App() {
|
||||
<p>We've already added the button component for you.</p>
|
||||
<Button className="mt-2">Button</Button>
|
||||
</div>
|
||||
<div className="font-mono text-xs text-muted-foreground">
|
||||
<div className="text-muted-foreground font-mono text-xs">
|
||||
(Press <kbd>d</kbd> to toggle dark mode)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user