Skip to content

Commit

Permalink
feat(Field): allow suffix and prefix (#756) [skip ci]
Browse files Browse the repository at this point in the history
* feat(Field): allow suffix and prefix

* fix: use styled components

* fix: adjust styled component for char and addons

* fix: improve char component

* fix: apply new behaviour to floats

* fix: implement in integers

* fix: reuse addon element

---------

Co-authored-by: Marc Güell Segarra <[email protected]>
  • Loading branch information
ecarreras and mguellsegarra authored Dec 12, 2024
1 parent 3473685 commit 64a48bd
Show file tree
Hide file tree
Showing 4 changed files with 340 additions and 191 deletions.
9 changes: 9 additions & 0 deletions src/common/AddonElement.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { memo } from "react";
import { theme } from "antd";
const { useToken } = theme;

export const AddonElement = memo(({ content }: { content: string }) => {
const { token } = useToken();
return <div style={{ color: token.colorTextDisabled }}>{content}</div>;
});
AddonElement.displayName = "AddonElement";
Loading

0 comments on commit 64a48bd

Please sign in to comment.