FIXED: Icon button with toggle
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { bool, oneOf, string } from 'prop-types';
|
||||
import React, { FocusEvent, forwardRef, useState } from 'react';
|
||||
import { TextFieldInterface } from './text-field.types';
|
||||
import React, { FocusEvent, forwardRef, useState } from 'react';
|
||||
|
||||
export const TextField = forwardRef<HTMLInputElement, TextFieldInterface>(
|
||||
(
|
||||
@@ -43,7 +43,7 @@ export const TextField = forwardRef<HTMLInputElement, TextFieldInterface>(
|
||||
<div className={`m3 m3-text-field ${variant}`.trimEnd()}>
|
||||
{variant === 'outlined' && (
|
||||
<fieldset>
|
||||
<legend className={raised && 'raised'}>
|
||||
<legend className={raised ? 'raised' : ''}>
|
||||
<span>Label</span>
|
||||
</legend>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user