feat: add public ColorArea components, docs, and package contract
This commit is contained in:
+6
-1
@@ -11,7 +11,12 @@ import {
|
||||
import { colorAreaBackground } from "../../src/components/color/gradient";
|
||||
import { parseColor, type Color } from "../../src/components/color/value";
|
||||
defineOptions({ inheritAttrs: false });
|
||||
const props = defineProps<ColorModelProps & ColorAreaOptions>();
|
||||
const props = withDefaults(defineProps<ColorModelProps & ColorAreaOptions>(), {
|
||||
// The private picker proof uses the common saturation × brightness square;
|
||||
// public ColorArea inference follows the fixed source's channel order.
|
||||
xChannel: "saturation",
|
||||
yChannel: "brightness",
|
||||
});
|
||||
const emit = defineEmits<{
|
||||
"update:modelValue": [Color | null];
|
||||
change: [Color | null];
|
||||
|
||||
Reference in New Issue
Block a user