-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecccae4
commit 2d6b96e
Showing
4 changed files
with
33 additions
and
3 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"Basic": "const Basic = () => (\n <ColorPicker value=\"hsl(10, 81%, 59%)\">\n {(api) => {\n const [hue, saturation, lightness] = api.channels\n return (\n <ColorPickerContent>\n <output>\n <div>Color: {api.value}</div>\n </output>\n <ColorPickerArea xChannel={saturation} yChannel={lightness}>\n <ColorPickerAreaGradient />\n <ColorPickerAreaThumb />\n </ColorPickerArea>\n\n <ColorPickerSwatch value={api.value} readOnly />\n\n <ColorPickerSliderTrack channel={hue}>\n <ColorPickerSliderThumb />\n </ColorPickerSliderTrack>\n\n <ColorPickerSliderTrack channel=\"alpha\">\n <ColorPickerSliderThumb />\n </ColorPickerSliderTrack>\n\n <ColorPickerChannelInput channel={hue} />\n <ColorPickerChannelInput channel={saturation} />\n <ColorPickerChannelInput channel={lightness} />\n\n <ColorPickerChannelInput channel=\"alpha\" />\n <ColorPickerChannelInput channel=\"hex\" />\n\n <ColorPickerSwatchGroup>\n <ColorPickerSwatch value=\"#123123\" />\n <ColorPickerSwatch value=\"#ff1321\" />\n </ColorPickerSwatchGroup>\n\n <ColorPickerEyeDropperTrigger>\n <button>Pick color</button>\n </ColorPickerEyeDropperTrigger>\n </ColorPickerContent>\n )\n }}\n </ColorPicker>\n)" | ||
"Basic": "const Basic = () => (\n <ColorPicker value=\"hsla(10, 81%, 59%, 1)\">\n {(api) => {\n const [hue, saturation, lightness] = api.channels\n return (\n <ColorPickerContent>\n <output>\n <ColorPickerSwatch value={api.value} readOnly />\n <span>{api.value}</span>\n </output>\n\n <ColorPickerArea xChannel={saturation} yChannel={lightness}>\n <ColorPickerAreaGradient />\n <ColorPickerAreaThumb />\n </ColorPickerArea>\n\n <ColorPickerSliderTrack channel={hue}>\n <ColorPickerSliderThumb />\n </ColorPickerSliderTrack>\n <ColorPickerSliderTrack channel=\"alpha\">\n <ColorPickerSliderThumb />\n </ColorPickerSliderTrack>\n\n <ColorPickerChannelInput channel={hue} />\n <ColorPickerChannelInput channel={saturation} />\n <ColorPickerChannelInput channel={lightness} />\n <ColorPickerChannelInput channel=\"alpha\" />\n <ColorPickerChannelInput channel=\"hex\" />\n\n <ColorPickerSwatchGroup>\n <ColorPickerSwatch value=\"hsla(153, 46%, 13%, 1)\" />\n <ColorPickerSwatch value=\"hsla(356, 100%, 54%, 1)\" />\n </ColorPickerSwatchGroup>\n <ColorPickerEyeDropperTrigger>\n <button>Pick color</button>\n </ColorPickerEyeDropperTrigger>\n </ColorPickerContent>\n )\n }}\n </ColorPicker>\n)" | ||
} |
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
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,27 @@ | ||
--- | ||
id: combobox | ||
name: Combobox | ||
description: TODO | ||
--- | ||
|
||
## Import | ||
|
||
```ts | ||
import { | ||
Combobox, | ||
ComboboxContent, | ||
ComboboxControl, | ||
ComboboxInput, | ||
ComboboxLabel, | ||
ComboboxOption, | ||
ComboboxOptionProps, | ||
ComboboxPositioner, | ||
ComboboxProps, | ||
ComboboxTrigger, | ||
Portal, | ||
} from '@ark-ui/solid' | ||
``` | ||
|
||
## Usage | ||
|
||
TBD |