-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
break up preview app into more components (#997)
* break preview app up into more components * remove debug code added by mistake
- Loading branch information
1 parent
1ec321a
commit 0dbea94
Showing
16 changed files
with
761 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lib/platform-bible-react/src/preview/components/basics/alert.examples.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { AlertTitle } from '@mui/material'; | ||
import { AlertCircle } from 'lucide-react'; | ||
import { Alert, AlertDescription } from '../../..'; | ||
|
||
export default function ExampleAlerts() { | ||
return ( | ||
<> | ||
<Alert className="pr-max-w-64">Alert! Why do I look like a Card? 🤔</Alert> | ||
<Alert variant="destructive" className="pr-max-w-64"> | ||
{/* not sure, why this is displaying black, in the sandbox it's red 🤷 */} | ||
<AlertCircle /> | ||
<AlertTitle>Settings are incomplete</AlertTitle> | ||
<AlertDescription> | ||
Results from the Capitalization check may be misleading because settings are incomplete | ||
</AlertDescription> | ||
</Alert> | ||
</> | ||
); | ||
} |
35 changes: 35 additions & 0 deletions
35
lib/platform-bible-react/src/preview/components/basics/button.examples.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Button } from '../../..'; | ||
|
||
export default function ButtonExamples() { | ||
return ( | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>variant</td> | ||
<td> | ||
<Button onClick={() => alert('Hello World')}>Shadcn Button</Button> | ||
<Button variant="default">default</Button> | ||
<Button variant="destructive">destructive</Button> | ||
<Button variant="outline">outline</Button> | ||
<Button variant="secondary">secondary</Button> | ||
<Button variant="ghost">ghost</Button> | ||
<Button variant="link">link</Button> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>size</td> | ||
<td> | ||
<span className="pr-mx-2">default:</span> | ||
<Button size="default">AAA</Button> | ||
<span className="pr-mx-2">icon:</span> | ||
<Button size="icon">AAA</Button> | ||
<span className="pr-mx-2">sm:</span> | ||
<Button size="sm">AAA</Button> | ||
<span className="pr-mx-2">lg:</span> | ||
<Button size="lg">AAA</Button> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
); | ||
} |
Oops, something went wrong.