Skip to content

Commit

Permalink
docs(solid): update types
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Apr 25, 2023
1 parent ecccae4 commit 2d6b96e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/solid/src/color-picker/docs/color-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
ColorPickerSliderTrack,
ColorPickerSwatch,
ColorPickerSwatchGroup,
} from '@ark-ui/react'
} from '@ark-ui/solid'
```

## Usage
Expand Down
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)"
}
5 changes: 4 additions & 1 deletion packages/solid/src/color-picker/docs/color-picker.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
"xChannel": { "type": "ColorChannel", "isRequired": true },
"yChannel": { "type": "ColorChannel", "isRequired": true }
},
"ColorPickerSwatchProps": { "readOnly": { "type": "boolean", "isRequired": false } }
"ColorPickerSwatchProps": {
"value": { "type": "string | Color", "isRequired": true },
"readOnly": { "type": "boolean", "isRequired": false }
}
}
27 changes: 27 additions & 0 deletions packages/solid/src/combobox/docs/combobox.mdx
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

0 comments on commit 2d6b96e

Please sign in to comment.