diff --git a/lib/PortingEmbed/EmbedField.tsx b/lib/PortingEmbed/EmbedField.tsx new file mode 100644 index 0000000..033855c --- /dev/null +++ b/lib/PortingEmbed/EmbedField.tsx @@ -0,0 +1,12 @@ +type Props = { + children: React.ReactNode +} + +export function EmbedField({ children }: Props) { + // TODO: customizable classNames + return ( +
+ {children} +
+ ) +} diff --git a/lib/PortingEmbed/EmbedFieldError.tsx b/lib/PortingEmbed/EmbedFieldError.tsx new file mode 100644 index 0000000..41e564b --- /dev/null +++ b/lib/PortingEmbed/EmbedFieldError.tsx @@ -0,0 +1,16 @@ +type Props = { + error: string +} + +export function EmbedFieldError({ error }: Props) { + if (!error) { + return null + } + + // TODO: customizable classNames + return ( +
+ {error} +
+ ) +} diff --git a/lib/PortingEmbed/EmbedFieldInput.tsx b/lib/PortingEmbed/EmbedFieldInput.tsx new file mode 100644 index 0000000..f72021e --- /dev/null +++ b/lib/PortingEmbed/EmbedFieldInput.tsx @@ -0,0 +1,11 @@ +type Props = React.HTMLAttributes + +export function EmbedFieldInput(props: Props) { + // TODO: customizable classNames + return ( + + ) +} diff --git a/lib/PortingEmbed/EmbedFieldLabel.tsx b/lib/PortingEmbed/EmbedFieldLabel.tsx new file mode 100644 index 0000000..c6a78b2 --- /dev/null +++ b/lib/PortingEmbed/EmbedFieldLabel.tsx @@ -0,0 +1,11 @@ +type Props = React.HTMLAttributes + +export function EmbedFieldLabel(props: Props) { + // TODO: customizable classNames + return ( +