diff --git a/pages/textarea/pseudo-selectors.page.tsx b/pages/textarea/pseudo-selectors.page.tsx new file mode 100644 index 0000000000..5f72e65709 --- /dev/null +++ b/pages/textarea/pseudo-selectors.page.tsx @@ -0,0 +1,104 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React, { useState } from 'react'; + +import Textarea from '~components/textarea'; + +import ScreenshotArea from '../utils/screenshot-area'; + +export default function TextareaPseudoSelectorsPage() { + const [value, setValue] = useState('Test value'); + const [isInvalid, setIsInvalid] = useState(false); + const [isDisabled, setIsDisabled] = useState(false); + const [isReadOnly, setIsReadOnly] = useState(false); + const [isWarning, setIsWarning] = useState(false); + const [customStyling, setCustomStyling] = useState(false); + + const customStyle = { + root: { + borderColor: { + default: '#3b82f6', + hover: '#2563eb', + focus: '#1d4ed8', + disabled: '#93c5fd', + readonly: '#60a5fa', + }, + borderWidth: '2px', + borderRadius: '8px', + backgroundColor: { + default: '#dbeafe', + hover: '#bfdbfe', + focus: '#bfdbfe', + disabled: '#eff6ff', + readonly: '#f0f9ff', + }, + color: { + default: '#1e40af', + hover: '#1e40af', + focus: '#1e3a8a', + disabled: '#93c5fd', + readonly: '#3b82f6', + }, + fontSize: '16px', + fontWeight: '500', + paddingBlock: '10px', + paddingInline: '14px', + }, + placeholder: { + color: '#60a5fa', + fontSize: '14px', + fontStyle: 'italic', + }, + }; + + return ( + <> +

Textarea Style API - Pseudo Selectors

+ +