Skip to content

Commit

Permalink
docs(changeset): Allow className to field-color-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntovanini committed Sep 6, 2024
1 parent 7271195 commit 97e1877
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 97e1877

Please sign in to comment.