mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
This PR removes all `paths` in `tsconfig.json` for all apps and packages. They were added previosly because some of the components had a `_Shadcn` suffix because of an ongoing migration. How that the migration is done, the paths can be removed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Standardized shared UI component, utility, and icon imports across design-system examples and application screens. * Simplified shared component access and project configuration. * Added shared access to anchor-link helpers and animation styles. * **Compatibility** * Updated component exports and imports without changing existing behavior. * No changes to user-facing workflows, screens, or functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
30 lines
797 B
TypeScript
30 lines
797 B
TypeScript
'use client'
|
|
|
|
import { useState } from 'react'
|
|
import { Field, FieldDescription, FieldTitle, Slider } from 'ui'
|
|
|
|
export default function FieldSlider() {
|
|
const [value, setValue] = useState([200, 800])
|
|
return (
|
|
<div className="w-full max-w-md">
|
|
<Field>
|
|
<FieldTitle>Price Range</FieldTitle>
|
|
<FieldDescription>
|
|
Set your budget range ($
|
|
<span className="font-medium tabular-nums">{value[0]}</span> -{' '}
|
|
<span className="font-medium tabular-nums">{value[1]}</span>).
|
|
</FieldDescription>
|
|
<Slider
|
|
value={value}
|
|
onValueChange={setValue}
|
|
max={1000}
|
|
min={0}
|
|
step={10}
|
|
className="mt-2 w-full"
|
|
aria-label="Price Range"
|
|
/>
|
|
</Field>
|
|
</div>
|
|
)
|
|
}
|