Skip to content

Commit

Permalink
Merge pull request #463 from uidu-org/feat-field-picker-classes
Browse files Browse the repository at this point in the history
docs(changeset): Allow className to field-color-picker
  • Loading branch information
apuntovanini authored Sep 6, 2024
2 parents 7271195 + 97e1877 commit b30a585
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-kiwis-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@uidu/field-color-picker': minor
---

Allow className to field-color-picker
6 changes: 6 additions & 0 deletions packages/forms/field-color-picker/examples/Basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export default function Basic() {
showInput={false}
/>
</div>
<FieldColorPicker
{...inputDefaultProps}
name="foo3"
layout="elementOnly"
tw="py-2"
/>
</Form>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function FieldColorPicker({
value: defaultValue,
onChange = noop,
trigger: Trigger = DefaulTrigger,
className,
colors = [
'#FF6900',
'#FCB900',
Expand Down Expand Up @@ -160,6 +161,7 @@ export default function FieldColorPicker({
</span>
<StyledInput
{...field}
className={className}
type="text"
$hasError={!!fieldState?.error}
as={HexColorInput}
Expand Down

0 comments on commit b30a585

Please sign in to comment.