Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

✨(frontend) introduce a TextArea primitive

lebaudantoinefe8fd3646767
diff --git a/src/frontend/src/primitives/TextArea.tsx b/src/frontend/src/primitives/TextArea.tsx
new file mode 100644
index 00000000..b59c7222
--- /dev/null
+++ b/src/frontend/src/primitives/TextArea.tsx
@@ -0,0 +1,18 @@
+import { TextArea as RACTextArea } from 'react-aria-components'
+import { styled } from '@/styled-system/jsx'
+
+/**
+ * Styled RAC TextArea.
+ */
+export const TextArea = styled(RACTextArea, {
+ base: {
+ width: 'full',
+ paddingY: 0.25,
+ paddingX: 0.5,
+ border: '1px solid',
+ borderColor: 'control.border',
+ color: 'control.text',
+ borderRadius: 4,
+ transition: 'all 200ms',
+ },
+})