mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-17 10:08:33 +00:00
fix: some details
This commit is contained in:
22 files changed
+330
-118
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { useData } from '../../../hooks/useData'
|
||||
import type { ButtonVariantProps } from '../../Button'
|
||||
|
||||
export function ButtonsStyleSelect() {
|
||||
const { data, setData } = useData()
|
||||
|
||||
return (
|
||||
<select
|
||||
value={data.settings.buttonsSchema as string}
|
||||
onChange={e =>
|
||||
setData({
|
||||
...data,
|
||||
settings: {
|
||||
...data.settings,
|
||||
buttonsSchema: e.target.value as ButtonVariantProps['styleSchema']
|
||||
}
|
||||
})
|
||||
}
|
||||
>
|
||||
<option value="square">Square</option>
|
||||
<option value="rounded">Rounded</option>
|
||||
<option value="pill">Pill</option>
|
||||
</select>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user