Skip to content

Commit

Permalink
docs: modify docs demo ui
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Jun 19, 2024
1 parent 45cf6c8 commit 6cdc259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/use-lorem-ipsum/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export function App() {

return (
<Card>
<KeyValue label="Stable lorem ipsum" value={lorem} />
<KeyValue label="Stable lorem ipsum 2" value={lorem2} />
<KeyValue label="Random lorem ipsum" value={randomLorem} />
<KeyValue labelWidth="180px" label="Stable lorem ipsum" value={lorem} />
<KeyValue labelWidth="180px" label="Stable lorem ipsum 2" value={lorem2} />
<KeyValue labelWidth="180px" label="Random lorem ipsum" value={randomLorem} />
<Button onClick={render}>Rerender</Button>
</Card>
)
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/demo-related/key-value.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function KeyValue(props: KeyValueProps) {
<span className="text-black/80 dark:text-white/80" style={{ width: props.labelWidth }}>
{props.label ?? 'Value'}:{' '}
</span>
<div>
<div className="flex-1">
<span className={`font-bold ${colors[props.color ?? color] || ''}`}>{`${value}`}</span>
<span>{props.suffix}</span>
</div>
Expand Down

0 comments on commit 6cdc259

Please sign in to comment.